diff --git a/src/Filament/Resources/UserResource.php b/src/Filament/Resources/UserResource.php index eb0cc2ed..2fcea926 100644 --- a/src/Filament/Resources/UserResource.php +++ b/src/Filament/Resources/UserResource.php @@ -72,7 +72,7 @@ public static function table(Table $table): Table PasswordReset::broker()->sendResetLink(['email' => $user->email]); Notification::make() ->title('Reset Link Sent') - ->body('Password reset link has been sent to the **' . $user->email . '**') + ->body('Password reset link has been sent to ' . $user->email) ->success() ->send(); }) diff --git a/src/Models/UserLogin.php b/src/Models/UserLogin.php index ea4f70c5..c3a64240 100644 --- a/src/Models/UserLogin.php +++ b/src/Models/UserLogin.php @@ -13,8 +13,7 @@ class UserLogin extends Model public function user() { $userModelClass = config('auth.providers.users.model'); - $userModel = new $userModelClass(); - return $this->belongsTo($userModel::class, 'user_id'); + return $this->belongsTo($userModelClass, 'user_id'); } }