@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public static function roleMake($routeName) |
18 | 18 | { |
19 | - return static::where('route_name',$routeName)->where('role_id',auth()->user()->role_id); |
|
19 | + return static::where('route_name', $routeName)->where('role_id', auth()->user()->role_id); |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | $routeNames = $permission::roleMake($this->routeName); |
62 | 62 | |
63 | - if($routeNames->count()){ |
|
63 | + if ($routeNames->count()) { |
|
64 | 64 | return true; |
65 | 65 | } |
66 | 66 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @param string $adapter |
87 | 87 | * @return RoleManager |
88 | 88 | */ |
89 | - public function setAdapter($adapter='Database') |
|
89 | + public function setAdapter($adapter = 'Database') |
|
90 | 90 | { |
91 | 91 | $this->adapter = $adapter; |
92 | 92 |