diff --git a/.env.example b/.env.example index e8ca854..a2a3324 100644 --- a/.env.example +++ b/.env.example @@ -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= diff --git a/config/codes.php b/config/codes.php index 3292f76..25bf7c7 100644 --- a/config/codes.php +++ b/config/codes.php @@ -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) ];