Skip to content

Commit

Permalink
Add alias.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Nov 11, 2019
1 parent f742ed3 commit e516f26
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@

class User extends Authenticatable
{
//
/**
* Get user's name (using alias).
*
* @return string
*/
public function getNameAttribute(): string
{
return $this->getAttribute('fullname');
}
}

0 comments on commit e516f26

Please sign in to comment.