@@ -10,7 +10,6 @@ discard block |
||
10 | 10 | use KodiComponents\Navigation\Contracts\NavigationInterface; |
11 | 11 | use KodiComponents\Navigation\Contracts\PageInterface; |
12 | 12 | use KodiComponents\Navigation\Navigation; |
13 | -use KodiComponents\Navigation\NavigationServiceProvider; |
|
14 | 13 | use Laracasts\Utilities\JavaScript\JavaScriptServiceProvider; |
15 | 14 | use Sco\ActionLog\LaravelServiceProvider; |
16 | 15 | use Sco\Admin\Admin; |
@@ -19,8 +18,8 @@ discard block |
||
19 | 18 | use Sco\Admin\Contracts\RepositoryInterface; |
20 | 19 | use Sco\Admin\Elements\ElementFactory; |
21 | 20 | use Sco\Admin\Exceptions\Handler; |
22 | -use Sco\Admin\Facades\AdminFacade; |
|
23 | 21 | use Sco\Admin\Facades\AdminElementFacade; |
22 | +use Sco\Admin\Facades\AdminFacade; |
|
24 | 23 | use Sco\Admin\Facades\AdminNavigationFacade; |
25 | 24 | use Sco\Admin\Navigation\Badge; |
26 | 25 | use Sco\Admin\Navigation\Page; |
@@ -32,6 +32,9 @@ |
||
32 | 32 | $this->bootIfNotBooted(); |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @return string|null |
|
37 | + */ |
|
35 | 38 | public function getTitle() |
36 | 39 | { |
37 | 40 | return $this->title; |
@@ -87,6 +87,9 @@ |
||
87 | 87 | $this->permissions[$permission] = $callback; |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @param string $permission |
|
92 | + */ |
|
90 | 93 | public function can($permission) |
91 | 94 | { |
92 | 95 | if (!isset($this->permissions[$permission])) { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | namespace Sco\Admin\View\Columns; |
5 | 5 | |
6 | -use JsonSerializable; |
|
7 | 6 | use Illuminate\Contracts\Support\Arrayable; |
8 | 7 | use Illuminate\Contracts\Support\Jsonable; |
8 | +use JsonSerializable; |
|
9 | 9 | use Sco\Admin\Contracts\ColumnInterface; |
10 | 10 | |
11 | 11 | abstract class Column implements ColumnInterface, Arrayable, Jsonable, JsonSerializable |