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