PHP 7.4.33
Preview: permission.php Size: 4.74 KB
/var/www/multi-event-cfp.bitkit.dk/httpdocs/config/permission.php
<?php

return [

    'models' => [

        /*
         * When using the "HasPermissions" trait from this package, we need to know which
         * Eloquent model should be used to retrieve your permissions. Of course, it
         * is often just the "Permission" model but you may use whatever you like.
         *
         * The model you want to use as a Permission model needs to implement the
         * `Spatie\Permission\Contracts\Permission` contract.
         */

        'permission' => Spatie\Permission\Models\Permission::class,

        /*
         * When using the "HasRoles" trait from this package, we need to know which
         * Eloquent model should be used to retrieve your roles. Of course, it
         * is often just the "Role" model but you may use whatever you like.
         *
         * The model you want to use as a Role model needs to implement the
         * `Spatie\Permission\Contracts\Role` contract.
         */

        'role' => Spatie\Permission\Models\Role::class,

    ],

    'table_names' => [

        /*
         * When using the "HasRoles" trait from this package, we need to know which
         * table should be used to retrieve your roles. We have chosen a basic
         * default value but you may easily change it to any table you like.
         */

        'roles' => 'roles',

        /*
         * When using the "HasPermissions" trait from this package, we need to know which
         * table should be used to retrieve your permissions. We have chosen a basic
         * default value but you may easily change it to any table you like.
         */

        'permissions' => 'permissions',

        /*
         * When using the "HasPermissions" trait from this package, we need to know which
         * table should be used to retrieve your models permissions. We have chosen a
         * basic default value but you may easily change it to any table you like.
         */

        'model_has_permissions' => 'model_has_permissions',

        /*
         * When using the "HasRoles" trait from this package, we need to know which
         * table should be used to retrieve your models roles. We have chosen a
         * basic default value but you may easily change it to any table you like.
         */

        'model_has_roles' => 'model_has_roles',

        /*
         * When using the "HasRoles" trait from this package, we need to know which
         * table should be used to retrieve your roles permissions. We have chosen a
         * basic default value but you may easily change it to any table you like.
         */

        'role_has_permissions' => 'role_has_permissions',
    ],

    'column_names' => [

        /*
         * Change this if you want to name the related model primary key other than
         * `model_id`.
         *
         * For example, this would be nice if your primary keys are all UUIDs. In
         * that case, name this `model_uuid`.
         */

        'model_morph_key' => 'model_id',
    ],

    /*
     * When set to true, the required permission names are added to the exception
     * message. This could be considered an information leak in some contexts, so
     * the default setting is false here for optimum safety.
     */

    'display_permission_in_exception' => false,

    /*
     * When set to true, the required role names are added to the exception
     * message. This could be considered an information leak in some contexts, so
     * the default setting is false here for optimum safety.
     */

    'display_role_in_exception' => false,

    /*
     * By default wildcard permission lookups are disabled.
     */

    'enable_wildcard_permission' => false,

    'cache' => [

        /*
         * By default all permissions are cached for 24 hours to speed up performance.
         * When permissions or roles are updated the cache is flushed automatically.
         */

        'expiration_time' => \DateInterval::createFromDateString('24 hours'),

        /*
         * The cache key used to store all permissions.
         */

        'key' => 'spatie.permission.cache',

        /*
         * When checking for a permission against a model by passing a Permission
         * instance to the check, this key determines what attribute on the
         * Permissions model is used to cache against.
         *
         * Ideally, this should match your preferred way of checking permissions, eg:
         * `$user->can('view-posts')` would be 'name'.
         */

        'model_key' => 'name',

        /*
         * You may optionally indicate a specific cache driver to use for permission and
         * role caching using any of the `store` drivers listed in the cache.php config
         * file. Using 'default' here means to use the `default` set in cache.php.
         */

        'store' => 'default',
    ],
];

Directory Contents

Dirs: 0 × Files: 28
Name Size Perms Modified Actions
1.53 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
637 B lrw-rw-r-- 2025-01-10 04:24:02
Edit Download
9.69 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
3.71 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
1.67 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
3.20 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
263.11 KB lrw-rw-r-- 2024-04-04 08:40:01
Edit Download
6.73 KB lrw-rw-r-- 2026-03-31 07:16:55
Edit Download
845 B lrw-r--r-- 2024-02-09 12:37:30
Edit Download
5.25 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
140 B lrw-rw-r-- 2026-01-05 12:07:32
Edit Download
10.74 KB lrw-rw-r-- 2025-12-10 06:09:27
Edit Download
2.62 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
1.53 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
6.22 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
11.47 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
3.28 KB lrw-rw-r-- 2025-03-03 05:40:15
Edit Download
3.29 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
62.01 KB lrw-rw-r-- 2024-07-17 13:28:43
Edit Download
4.74 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
2.84 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
1.75 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
1.72 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
27.00 KB lrw-rw-r-- 2025-01-10 04:24:02
Edit Download
950 B lrw-r--r-- 2024-02-09 12:37:30
Edit Download
6.88 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
5.64 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
1.03 KB lrw-r--r-- 2024-02-09 12:37:30
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).