*/ protected $fillable = [ 'name', 'email', 'password', 'phone', 'gender', 'business_name', 'business_address', 'role', 'is_admin', ]; /** * 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 = [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'is_admin' => 'boolean', ]; /** * Get all services for the user. */ public function services() { return $this->hasMany(Service::class); } /** * Get all satisfactions for the user. */ public function satisfactions() { return $this->hasMany(Satisfaction::class); } /** * Send the password reset notification. * * @param string $token * @return void */ public function sendPasswordResetNotification($token) { $this->notify(new ResetPasswordNotification($token)); } }