I am new to coding and I am trying to extend \TCG\Voyager\Models\User
and Authenticatable
implements MustVerifyEmail
together but I do not know how to do it.
I have tried class User
extends \TCG\Voyager\Models\User
, Authenticatable
implements MustVerifyEmail
together but that doesn't work for me.
I have created 2 seperate classes and that does not let me either.
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable implements MustVerifyEmail extends \TCG\Voyager\Models\User
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'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',
];
}