*/ protected $fillable = [ 'name', 'email', 'password', 'role', 'status', 'photo', 'google_id', 'social_links', 'email_verified_at', 'instructor_id', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'social_links' => 'array', 'status' => 'integer', ]; public function instructor(): BelongsTo { return $this->belongsTo(Instructor::class); } public function sendEmailVerificationNotification() { $this->notify(new VerifyEmailNotification); } }