get request data in observer laravel
snippet in php

get request data in observer laravel

user102

request() helper should work:
if (request()->has('password')) {
    $user->password = bcrypt(request()->password);
}