finish register special

This commit is contained in:
2020-03-22 17:44:43 +01:00
parent 3f96cc6fe3
commit 18d0841a7d
34 changed files with 2190 additions and 118 deletions

View File

@@ -37,4 +37,9 @@ class User extends Authenticatable
protected $casts = [
'email_verified_at' => 'datetime',
];
public function isAdmin()
{
return $this->role === 2;
}
}