packages/user/config/user.php
<?php
/*
|--------------------------------------------------------------------------
| Moox Configuration
|--------------------------------------------------------------------------
|
| This configuration file uses translatable strings. If you want to
| translate the strings, you can do so in the language files
| published from moox_core. Example:
|
| 'trans//core::core.all',
| loads from common.php
| outputs 'All'
|
*/
return [
/*
|--------------------------------------------------------------------------
| Resources
|--------------------------------------------------------------------------
|
| The following configuration is done per Filament resource.
|
*/
'resources' => [
'user' => [
/*
|--------------------------------------------------------------------------
| Title
|--------------------------------------------------------------------------
|
| The translatable title of the Resource in singular and plural.
|
*/
'single' => 'trans//core::user.user',
'plural' => 'trans//core::user.users',
/*
|--------------------------------------------------------------------------
| Tabs
|--------------------------------------------------------------------------
|
| Define the tabs for the Resource table. They are optional, but
| pretty awesome to filter the table by certain values.
| You may simply do a 'tabs' => [], to disable them.
|
*/
'tabs' => [
'all' => [
'label' => 'trans//core::core.all',
'icon' => 'gmdi-filter-list',
'query' => [],
],
/*
'error' => [
'label' => 'trans//core::core.error',
'icon' => 'gmdi-text-snippet',
'query' => [
[
'field' => 'subject_type',
'operator' => '=',
'value' => 'Error',
],
],
],
*/
],
],
],
/*
|--------------------------------------------------------------------------
| Auth guards
|--------------------------------------------------------------------------
|
| Define the columns for the username, email and password for the
| different guards. This is necessary for the login process
| to allow login with username or email address.
|
*/
'auth' => [
'web' => [
'username' => 'name',
'email' => 'email',
'password' => 'password',
],
],
/*
|--------------------------------------------------------------------------
| Password Validation
|--------------------------------------------------------------------------
|
| Define the password validation rules for your Moox users.
| If you want to be hacked pretty soon, you can disable
| the password validation by emptying the rules.
|
*/
'password' => [
'validation' => [
'rules' => Illuminate\Validation\Rules\Password::min(20)
->max(64)
->mixedCase()
->numbers()
->symbols()
->uncompromised(),
],
'helperText' => 'Das Passwort muss zwischen 20 und 64 Zeichen lang sein, Groß- und Kleinbuchstaben, Zahlen und Sonderzeichen enthalten.',
],
/*
|--------------------------------------------------------------------------
| Navigation Group
|--------------------------------------------------------------------------
|
| The translatable title of the navigation group in the
| Filament Admin Panel. Instead of a translatable
| string, you may also use a simple string.
|
*/
'navigation_group' => 'trans//core::user.users',
/*
|--------------------------------------------------------------------------
| Audit - Navigation Sort
|--------------------------------------------------------------------------
|
| This value is the sort order of the navigation item in the
| Filament Admin Panel. If you use a bunch of Moox
| plugins, everything should be in order.
|
*/
'navigation_sort' => 6000,
];