安装:
composer create-project --prefer-dist laravel/laravel admin
Installing laravel/laravel (v5.8.35)
...
Package manifest generated successfully.
> @php artisan key:generate --ansi
Application key set successfully.
----------------------------------------------------
--------------------------------------------------------
Nginx: 在你的站点配置中加入以下配置,所有的请求将会引导至 index.php
前端控制器
root /path/to/admin/public;
location / {
index index.php;
try_files $uri $uri/ /index.php?$query_string;
}
用户权限:
admin_users admin_role_users admin_roles admin_role_menu, admin_role_permissions admin_menu admin_permissions admin_user_permissions
admin_users # 用户 【id, username, password, name, avatar, remember_token, created_at, updated_at】 admin_role_users # 用户-角色 【role_id, user_id, created_at, updated_at】 admin_roles # 角色 【id, name, slug, created_at, updated_at】 admin_role_permissions # 角色-权限 【role_id, permission_id, created_at, updated_at】 admin_permissions # 权限 【id, name, slug, http_method, http_path, created_at, created_at】 admin_role_menu # 角色-菜单 【role_id, menu_id, created_at, updated_at】 admin_menu # 菜单 【id, parent_id, order, title, icon, uri, permission, created_at, updated_at】 admin_user_permissions # 用户权限:额外附加权限 [user_id, permission_id, created_at, updated_at] admin_operation_log # 操作日志 [id, user_id, path, method, ip, input, created_at, updated_at]
---------------------------------
users [id, name, email, email_verified_at, password, remember_token, created_at, updated_at] password_resets [email, token, created_at]