rbac.php 677 B

12345678910111213
  1. <?php
  2. return [
  3. 'layout' => 'layouts.master', // You must set it. Example: 'layout' => 'adminlte::page'
  4. 'userModelClass' => App\Models\User::class, // You can change it
  5. 'adminUserId' => 1, // You must set it. This is the initial user id, which must be an administrator, at least at the first stage.
  6. 'routesMainPermission' => Itstructure\LaRbac\Models\Permission::ADMINISTRATE_PERMISSION, // You can change it
  7. 'routesAuthMiddlewares' => ['auth'], // You can change it
  8. 'memberNameAttributeKey' => function ($row) { // You can change it. And can simply set 'memberNameAttributeKey' => 'name'
  9. return $row->name;
  10. },
  11. 'rowsPerPage' => 10,
  12. ];