diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index 1c52273..f6e531d 100755 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Route; function getSetting($key) { - if (!\Schema::hasTable('settings')){ + if ( !isset($_SERVER['SERVER_NAME']) || !\Schema::hasTable('settings')){ return false; } $x = Setting::where('key', $key)->first();