fix: migrations not working on install due to debug mode not being boolean
parent
8d953cd848
commit
041028e04c
|
@ -25,7 +25,7 @@ return [
|
||||||
* Development Mode:
|
* Development Mode:
|
||||||
* true: Errors and warnings shown.
|
* true: Errors and warnings shown.
|
||||||
*/
|
*/
|
||||||
'debug' => filter_var(env('DEBUG', 0), FILTER_VALIDATE_INT, array("options" => array("min_range"=>0, "max_range"=>1))),
|
'debug' => filter_var(env('DEBUG', false), FILTER_VALIDATE_BOOLEAN),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Security and encryption configuration
|
* Security and encryption configuration
|
||||||
|
|
|
@ -346,8 +346,8 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
|
||||||
'description' => __('The debug level of the instance'),
|
'description' => __('The debug level of the instance'),
|
||||||
'default' => 0,
|
'default' => 0,
|
||||||
'options' => [
|
'options' => [
|
||||||
0 => __('Debug Off'),
|
false => __('Debug Off'),
|
||||||
1 => __('Debug On'),
|
true => __('Debug On'),
|
||||||
],
|
],
|
||||||
'test' => function ($value, $setting, $validator) {
|
'test' => function ($value, $setting, $validator) {
|
||||||
$validator->range('value', [0, 1]);
|
$validator->range('value', [0, 1]);
|
||||||
|
|
Loading…
Reference in New Issue