Ver Fonte

修复判断APP_ENV错误

visuddhinanda há 2 anos atrás
pai
commit
c5b1efe785
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      config/database.php

+ 2 - 1
config/database.php

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