add display_name support

This commit is contained in:
2023-04-19 09:40:35 +10:00
parent a96aba57f7
commit 51df812a6c
7 changed files with 30 additions and 6 deletions

View File

@@ -31,6 +31,7 @@ class User extends Authenticatable implements Auditable
'email',
'phone',
'password',
'display_name',
];
/**
@@ -66,6 +67,15 @@ class User extends Authenticatable implements Auditable
'permissions'
];
/**
* The default attributes.
*
* @var string[]
*/
protected $attributes = [
'phone' => '',
];
// public function getPermissionsAttribute() {
// return $this->permissions()->pluck('permission')->toArray();