get request data in observer laravel code example
Example: get request data in observer laravel
request() helper should work:
if (request()->has('password')) {
$user->password = bcrypt(request()->password);
}
request() helper should work:
if (request()->has('password')) {
$user->password = bcrypt(request()->password);
}