laravel model observers how to get $request data in observer function 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);
}