Issues (9)

config/rbac.php (1 issue)

Labels
Severity
1
<?php
2
3
return [
4
    'layout' => '', // You must set it. Example: 'layout' => 'adminlte::page'
5
    'userModelClass' => App\Models\User::class, // You can change it
0 ignored issues
show
The type App\Models\User was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
    'adminUserId' => null, // You must set it. This is the initial user id, which must be an administrator, at least at the first stage.
7
    'routesMainPermission' => Itstructure\LaRbac\Models\Permission::ADMINISTRATE_PERMISSION,  // You can change it
8
    'routesAuthMiddlewares' => ['auth'],  // You can change it
9
    'memberNameAttributeKey' => function ($row) { // You can change it. And can simply set 'memberNameAttributeKey' => 'name'
10
        return $row->name;
11
    },
12
    'rowsPerPage' => 10,
13
];
14