|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace App;
|
|
namespace App;
|
|
|
|
|
|
|
|
+use App\Notifications\ResetPassword;
|
|
use Illuminate\Notifications\Notifiable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
|
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
@@ -37,4 +38,15 @@ class User extends Authenticatable
|
|
protected $casts = [
|
|
protected $casts = [
|
|
'email_verified_at' => 'datetime',
|
|
'email_verified_at' => 'datetime',
|
|
];
|
|
];
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Send the password reset notification.
|
|
|
|
+ *
|
|
|
|
+ * @param string $token
|
|
|
|
+ * @return void
|
|
|
|
+ */
|
|
|
|
+ public function sendPasswordResetNotification($token)
|
|
|
|
+ {
|
|
|
|
+ $this->notify(new ResetPassword($token));
|
|
|
|
+ }
|
|
}
|
|
}
|