Forráskód Böngészése

修复判断APP_ENV错误

visuddhinanda 2 éve
szülő
commit
c5b1efe785
1 módosított fájl, 2 hozzáadás és 1 törlés
  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'),