Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gurudin/admin
Laravel admin
https://github.com/gurudin/admin
laravel permission
Last synced: 16 days ago
JSON representation
Laravel admin
- Host: GitHub
- URL: https://github.com/gurudin/admin
- Owner: gurudin
- Created: 2018-07-30T10:35:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-10T05:57:37.000Z (over 6 years ago)
- Last Synced: 2024-11-14T21:08:52.766Z (3 months ago)
- Topics: laravel, permission
- Language: PHP
- Homepage:
- Size: 3.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-admin
### 安装
```composer require gurudin/admin```### 配置
修改```config/auth.php``` providers配置```'model' => Gurudin\Admin\Models\User::class,```
### 迁移数据库表
```php artisan migrate```### 发布静态文件
```php artisan vendor:publish --tag=gurudin-admin --force```### 发布配置文件
```php artisan vendor:publish --tag=gurudin-admin-config --force```### 配置文件
```
[
'[email protected]',
],/*
|--------------------------------------------------------------------------
| Allowed route.
|--------------------------------------------------------------------------
|
| Routes that do not require permission detection.
|
*/
'allow' => [
['method' => 'get', 'uri' => '/admin/select'],
],/*
|--------------------------------------------------------------------------
| Extends blade
|--------------------------------------------------------------------------
|
| Extends parent class template.
|
| Menu item: Gurudin\Admin\Support\Helper::authMenu(Auth::user(), request()->group);
|
| Blade example:
|
| @yield('title') {{ config('app.name', '') }}
| @yield('style')
|
|
|
|
| ...
| ...
|
| @yield('script')
|
|
*/
'extends_blade' => 'admin::layouts.app',/*
|--------------------------------------------------------------------------
| Welcome page loading view.
|--------------------------------------------------------------------------
|
| Welcome page loading view.
|
*/
'welcome_view' => 'admin::welcome',/*
|--------------------------------------------------------------------------
| Select group page loading view.
|--------------------------------------------------------------------------
|
| Select group page loading view.
|
| $grop_list = [
| ['id' => 1, 'name' => 'Default', 'description' => 'default'],
| ...
| ];
|
*/
'select_view' => 'admin::select',/*
|--------------------------------------------------------------------------
| 403 Forbidden loading view.
|--------------------------------------------------------------------------
|
| View loaded when there is no permission.
|
| example: 'forbidden_view' => 'error.403',
|
*/
'forbidden_view' => '',/*
|--------------------------------------------------------------------------
| Logo uri.
|--------------------------------------------------------------------------
|
*/
'logo_uri' => '/vendor/gurudin/images/logo.png',
];```
### 使用中间件 ```admin```