update
This commit is contained in:
@@ -63,6 +63,11 @@ class User extends Authenticatable implements JWTSubject
|
||||
return [];
|
||||
}
|
||||
|
||||
public function getNameAttribute(): string
|
||||
{
|
||||
return trim($this->firstname . ' ' . $this->lastname);
|
||||
}
|
||||
|
||||
public function staffOnline()
|
||||
{
|
||||
return $this->hasOne(\App\Models\Staff::class, 'user_id', 'id');
|
||||
|
||||
Reference in New Issue
Block a user