1
0
Fork 0

fixed get setting

main
A1Gard 1 year ago
parent f9b13d7845
commit e67bd222a7

@ -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();

Loading…
Cancel
Save