update config.code to be customized from env

This commit is contained in:
Jérémy Munsch 2023-05-17 16:59:41 +02:00
parent 7ceccdf7b0
commit c189ac6f18
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
2 changed files with 9 additions and 2 deletions

View file

@ -34,3 +34,10 @@ CRM_ENDPOINT=
CRM_TOKEN=
# MESBR
MESBR_ENDPOINT=
# Export pagination config, defaut 65530.
CODE_PAGINATE=
# Dictionnary of chars to use fo generating unique codes.
CODE_CHAR_LIST=
# Code length (chars).
CODE_CHAR_LENGTH=

View file

@ -5,7 +5,7 @@ return [
'paginate' => env('CODE_PAGINATE', 65530),
// Dictionnary of chars to use fo generating unique codes.
'codeCharList' => 'ABCDEFGHJKMNPQRSTUWXYZ123456789',
'codeCharList' => env('CODE_CHAR_LIST', 'ABCDEFGHJKMNPQRSTUWXYZ123456789'),
// Code length.
'codeLength' => 8
'codeLength' => env('CODE_CHAR_LENGTH', 9)
];