Files
hafifierahman 62395e4165 fix email blade
2022-08-21 00:08:48 +08:00

58 lines
1.2 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use App\Notifications\VerifyEmail as MelayuEmel;
use App\Notifications\ResetPassword as ResetPass;
class User extends Authenticatable implements MustVerifyEmail
{
use HasFactory, Notifiable;
public function sendEmailVerificationNotification()
{
$this->notify(new MelayuEmel);
}
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPass($token));
}
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'icno',
'name',
'email',
'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
}