Explorar el Código

修复判断APP_ENV错误

visuddhinanda hace 2 años
padre
commit
c5b1efe785
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      config/database.php

+ 2 - 1
config/database.php

@@ -1,6 +1,7 @@
 <?php
 
 use Illuminate\Support\Str;
+use Illuminate\Support\Facades\Log;
 
 $config = [
 
@@ -157,7 +158,7 @@ $config = [
 ];
 
 
-if(env('APP_ENV'!=='local')){
+if(env('APP_ENV') !== 'local'){
     $config['redis'] = [
 
         'client' => env('REDIS_CLIENT', 'phpredis'),