企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## LaraCMS 配置 config/administrator.php ```php use Illuminate\Support\Facades\Auth; return [ // 后台的 URI 'uri' => 'administrator', // 后台专属域名,没有的话可以留空 'domain' => '', // 列表默认条数 'paginate' => [ 'limit' => 15, ], // 可选富编辑器 ueditor , simditor 'editor' => 'simditor', /** * 后台菜单数组 */ 'menu' => [ // ... "system" => [ // 菜单分组 "id" => "system", // 菜单ID "text" => "系统设置", // 菜单名称 "permission" => function(){ return Auth::user()->can('manage_system'); }, // 权限 "icon" => "icon-cog", "route" => "", // 路由名称 "params" => [], // 路由参数 "children" => [ "system.users" => [ "id" => "system.users", "text" => "用户管理", "permission" => function(){ return Auth::user()->can('manage_users'); }, "icon" => "icon-user", "link" => "", // 链接 "route" => "users.index", "params" => [], "query" => [], // 路由Query 参数 ], "system.permissions" => [ "id" => "system.permissions", "text" => "权限管理", "permission" => function(){ return Auth::user()->can('manage_permissions'); }, "icon" => "icon-circle", "link" => "", "route" => "permissions.index", "params" => [], "query" => [], ], "system.roles" => [ "id" => "system.roles", "text" => "角色管理", "permission" => function(){ return Auth::user()->can('manage_roles'); }, "icon" => "icon-group", "link" => "", "route" => "roles.index", "params" => [], "query" => [], ], ], ], // .... ], ], ], ]; ```