Ver Fonte

Merge pull request #1602 from visuddhinanda/laravel

修复判断APP_ENV错误
visuddhinanda há 2 anos atrás
pai
commit
b385e44ca4
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
 
 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'),