@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Sco\Admin\Providers; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Support\ServiceProvider; |
| 6 | -use KodiComponents\Navigation\Contracts\NavigationInterface; |
|
| 7 | -use KodiComponents\Navigation\Navigation; |
|
| 8 | 6 | use KodiComponents\Navigation\Contracts\BadgeInterface; |
| 7 | +use KodiComponents\Navigation\Contracts\NavigationInterface; |
|
| 9 | 8 | use KodiComponents\Navigation\Contracts\PageInterface; |
| 9 | +use KodiComponents\Navigation\Navigation; |
|
| 10 | 10 | use Sco\Admin\Navigation\Badge; |
| 11 | 11 | use Sco\Admin\Navigation\Page; |
| 12 | 12 | |
@@ -24,6 +24,10 @@ |
||
| 24 | 24 | $this->storePermission('delete_permission', '删除权限'); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $name |
|
| 29 | + * @param string $displayName |
|
| 30 | + */ |
|
| 27 | 31 | private function storePermission($name, $displayName, $description = '') |
| 28 | 32 | { |
| 29 | 33 | $permissionModelName = config('entrust.permission'); |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | use Sco\Admin\Contracts\RepositoryInterface; |
| 11 | 11 | use Sco\Admin\Contracts\View\ColumnFactoryInterface; |
| 12 | 12 | use Sco\Admin\Contracts\View\ViewFactoryInterface; |
| 13 | -use Sco\Admin\Form\ElementFactory; |
|
| 14 | 13 | use Sco\Admin\Exceptions\Handler; |
| 14 | +use Sco\Admin\Form\ElementFactory; |
|
| 15 | 15 | use Sco\Admin\Form\FormFactory; |
| 16 | 16 | use Sco\Admin\Repositories\Repository; |
| 17 | 17 | use Sco\Admin\View\ColumnFactory; |