@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Serverfireteam\Panel; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Facades\Session as session; |
|
| 6 | 5 | use Illuminate\Routing\Controller; |
| 7 | 6 | use Illuminate\Support\Facades\Input; |
| 8 | 7 | |
@@ -30,6 +30,9 @@ |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $display |
|
| 35 | + */ |
|
| 33 | 36 | public function getAndSave($url, $display){ |
| 34 | 37 | $this->url = $url; |
| 35 | 38 | $this->display = $display; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * Assign the given role to the user. |
| 19 | 19 | * |
| 20 | 20 | * @param string $role |
| 21 | - * @return mixed |
|
| 21 | + * @return \Illuminate\Database\Eloquent\Model |
|
| 22 | 22 | */ |
| 23 | 23 | public function assignRole($role) |
| 24 | 24 | { |
@@ -2,10 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Serverfireteam\Panel\libs; |
| 4 | 4 | |
| 5 | -use Lang; |
|
| 6 | 5 | use Closure; |
| 7 | -use Gate; |
|
| 8 | - |
|
| 9 | 6 | use Serverfireteam\Panel\Admin; |
| 10 | 7 | |
| 11 | 8 | class PermissionCheckMiddleware |