finish register special

This commit is contained in:
Romain committed 2020-03-22 17:44:43 +01:00
1 parent 3f96cc6fe3
commit 18d0841a7d
34 files changed
+2190 -118

No files matched your search

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