@@ -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; |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | * @param \Illuminate\Http\Request $request |
| 154 | 154 | * @param \Sco\Admin\Contracts\ExceptionInterface $exception |
| 155 | 155 | * |
| 156 | - * @return \Illuminate\Contracts\Routing\ResponseFactory|\Symfony\Component\HttpFoundation\Response |
|
| 156 | + * @return \Symfony\Component\HttpFoundation\Response|null |
|
| 157 | 157 | */ |
| 158 | 158 | protected function renderAdminException( |
| 159 | 159 | $request, |