email)).'.jpg?s=200&d=mm'; } /** * Get the role attribute. * * @return string */ public function getRoleAttribute() { return $this->roles->first()->name; } /** * Get the oauth providers. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function oauthProviders() { return $this->hasMany(OAuthProvider::class); } /** * Send the password reset notification. * * @param string $token * @return void */ public function sendPasswordResetNotification($token) { $this->notify(new ResetPasswordNotification($token)); } /** * @return int */ public function getJWTIdentifier() { return $this->getKey(); } /** * @return array */ public function getJWTCustomClaims() { return []; } public function booking(){ return $this->hasMany(Booking::class); } }