$user = \App\Models\User::where('email', 'arrifaimuntasir@gmail.com')->first(); if ($user) { $user->password = \Illuminate\Support\Facades\Hash::make('arrifai@$123'); $user->save(); echo "Password updated successfully.\n"; } else { echo "User not found.\n"; }