From c189ac6f1889d959f0446707b01bc70077cd0a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 17 May 2023 16:59:41 +0200 Subject: [PATCH] update config.code to be customized from env --- .env.example | 7 +++++++ config/codes.php | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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) ];