|
| 1 | +<?php |
| 2 | + |
| 3 | +return [ |
| 4 | + /* |
| 5 | + |-------------------------------------------------------------------------- |
| 6 | + | Enabled |
| 7 | + |-------------------------------------------------------------------------- |
| 8 | + | |
| 9 | + | Define if Nop should be enabled or not. |
| 10 | + | |
| 11 | + */ |
| 12 | + 'enabled' => env('NOP_ENABLED', true), |
| 13 | + |
| 14 | + /* |
| 15 | + |-------------------------------------------------------------------------- |
| 16 | + | Nop token |
| 17 | + |-------------------------------------------------------------------------- |
| 18 | + | |
| 19 | + | Token of the Nop project. |
| 20 | + | If you don't have a project yet, create one for free at |
| 21 | + | https://nop.is/account/projects/create. |
| 22 | + | |
| 23 | + */ |
| 24 | + |
| 25 | + 'token' => env('NOP_TOKEN'), |
| 26 | + |
| 27 | + /* |
| 28 | + |-------------------------------------------------------------------------- |
| 29 | + | Enabled routes |
| 30 | + |-------------------------------------------------------------------------- |
| 31 | + | |
| 32 | + | Routes where Nop should be enabled. |
| 33 | + | |
| 34 | + */ |
| 35 | + 'enabled_routes' => [ |
| 36 | + // This route enables all resources of your admin |
| 37 | + // E.g. /admin/resources/<resource name>/<id or uuid>/edit |
| 38 | + 'admin/resources/[a-z-_]+/[0-9a-z-]+/edit', |
| 39 | + ], |
| 40 | + |
| 41 | + |
| 42 | + /* |
| 43 | + |-------------------------------------------------------------------------- |
| 44 | + | User name field |
| 45 | + |-------------------------------------------------------------------------- |
| 46 | + | |
| 47 | + | Choose the user name field shown in the Nop modals. |
| 48 | + | E.g. "name" will be fetched as Auth::user()->name. |
| 49 | + | Set this to `null` to disable it. |
| 50 | + | |
| 51 | + */ |
| 52 | + 'user_name_field' => 'name', |
| 53 | + |
| 54 | + 'settings' => [ |
| 55 | + |
| 56 | + /* |
| 57 | + |-------------------------------------------------------------------------- |
| 58 | + | Nop locale |
| 59 | + |-------------------------------------------------------------------------- |
| 60 | + | |
| 61 | + | Set the locale for Nop. Can be a locale or an array of translations. |
| 62 | + | See more: https://docs.nop.is/usage/settings.html#locale |
| 63 | + | |
| 64 | + */ |
| 65 | + 'locale' => 'en-US', |
| 66 | + |
| 67 | + /* |
| 68 | + |-------------------------------------------------------------------------- |
| 69 | + | Redirect on cancel |
| 70 | + |-------------------------------------------------------------------------- |
| 71 | + | |
| 72 | + | The URL in which the guest will be redirected when |
| 73 | + | canceling an access request. |
| 74 | + | See more: https://docs.nop.is/usage/settings.html#redirectoncancel |
| 75 | + */ |
| 76 | + 'redirectOnCancel' => '/', |
| 77 | + |
| 78 | + /* |
| 79 | + |-------------------------------------------------------------------------- |
| 80 | + | Redirect on reject |
| 81 | + |-------------------------------------------------------------------------- |
| 82 | + | |
| 83 | + | The URL in which the guest will be redirected when |
| 84 | + | his access request has been rejected. |
| 85 | + | See more: https://docs.nop.is/usage/settings.html#redirectonreject |
| 86 | + */ |
| 87 | + 'redirectOnReject' => '/', |
| 88 | + |
| 89 | + /* |
| 90 | + |-------------------------------------------------------------------------- |
| 91 | + | Redirect on reject |
| 92 | + |-------------------------------------------------------------------------- |
| 93 | + | |
| 94 | + | The URL in which the owner will be redirected when accepting |
| 95 | + | an access request and, therefore, his session has been closed. |
| 96 | + | See more: https://docs.nop.is/usage/settings.html#redirectonapprove |
| 97 | + */ |
| 98 | + 'redirectOnApprove' => '/', |
| 99 | + |
| 100 | + /* |
| 101 | + |-------------------------------------------------------------------------- |
| 102 | + | Redirect on forced |
| 103 | + |-------------------------------------------------------------------------- |
| 104 | + | |
| 105 | + | The URL in which the owner will be redirected whenan access request |
| 106 | + | has been forced from a guest and, therefore, his session has been closed. |
| 107 | + | See more: https://docs.nop.is/usage/settings.html#redirectonforced |
| 108 | + */ |
| 109 | + 'redirectOnForced' => '/', |
| 110 | + |
| 111 | + ], |
| 112 | + |
| 113 | +]; |
0 commit comments