user destroying flow updated

This commit is contained in:
Sevan Nerse
2022-06-29 10:48:57 +03:00
parent 127d85d0d9
commit c846aa0005
5 changed files with 8 additions and 34 deletions

View File

@ -89,6 +89,11 @@ class User extends Authenticatable implements HasLocalePreference
return $this->belongsToMany('App\Models\Common\Dashboard', 'App\Models\Auth\UserDashboard');
}
public function invitation()
{
return $this->hasOne('App\Models\Auth\UserInvitation', 'user_id', 'id');
}
/**
* Always capitalize the name when we retrieve it
*/