Ich Ich, gros commit

This commit is contained in:
bglacial
2018-10-08 22:31:58 +02:00
parent ecded0947f
commit b11b2befd7
49 changed files with 37276 additions and 11977 deletions

View File

@ -26,4 +26,14 @@ class User extends Authenticatable
protected $hidden = [
'password', 'remember_token',
];
/**
* User is admin.
*
* @return integer
*/
public function getAdminAttribute()
{
return $this->role === 'admin';
}
}