for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use App\Notifications\Admin\Auth\ResetPassword;
use App\Notifications\Admin\Auth\VerifyEmail;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class Admin extends Authenticatable implements MustVerifyEmail
{
use HasFactory;
use Notifiable;
Illuminate\Notifications\Notifiable
$email
App\Models\Admin
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
* The attributes that should be hidden for arrays.
protected $hidden = [
'password', 'remember_token',
* Send the password reset notification.
* @param string $token
public function sendPasswordResetNotification($token)
$this->notify(new ResetPassword($token));
}
* Send the email verification notification.
public function sendEmailVerificationNotification()
$this->notify(new VerifyEmail());