Update app.php

This commit is contained in:
Julian Prieber 2023-06-13 17:12:36 +02:00
parent 7b65013633
commit ac210bdfb5
1 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,13 @@
<?php <?php
function locales($key, $default)
{
$value = env($key, $default);
$array = explode(',', $value);
$trimmedArray = array_map('trim', $array);
return $trimmedArray;
}
return [ return [
/* /*
@ -11,7 +19,7 @@ return [
| |
*/ */
'supported_locales' => env('LOCALES', ['de', 'es', 'pt', 'zh', 'ms']), 'supported_locales' => locales('LOCALES', 'de, es, pt, zh, ms'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------