roles functions in login controller'

This commit is contained in:
2018-11-05 21:22:07 -06:00
parent 627af443e5
commit 19b26cb54f
3 changed files with 23 additions and 0 deletions

View File

@@ -43,8 +43,10 @@ class User extends Authenticatable
protected $guarded = [];
//Used in middleware to make sure a user is able to access many of the pages
public function hasRole($role)
{
//return User::where('role', $role)->get();
}