remove storage from git
This commit is contained in:
@@ -242,10 +242,10 @@ class Product extends Model
|
||||
Date::now()->addMinutes(5)
|
||||
);
|
||||
}
|
||||
return '/' . $this->poster;
|
||||
return env('APP_URL') . '/' . $this->poster;
|
||||
}
|
||||
|
||||
return '/images/no_product.jpg';
|
||||
return env('APP_URL') . '/images/no_product.jpg';
|
||||
}
|
||||
|
||||
public function getDataSheet()
|
||||
@@ -257,7 +257,7 @@ class Product extends Model
|
||||
Date::now()->addMinutes(5)
|
||||
);
|
||||
}
|
||||
return '/' . $this->data_sheet;
|
||||
return env('APP_URL') . '/' . $this->data_sheet;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -271,10 +271,10 @@ class Product extends Model
|
||||
Date::now()->addMinutes(5)
|
||||
);
|
||||
}
|
||||
return '/' . $this->poster_thumb;
|
||||
return env('APP_URL') . '/' . $this->poster_thumb;
|
||||
}
|
||||
|
||||
return '/images/no_product.jpg';
|
||||
return env('APP_URL') . '/images/no_product.jpg';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
date_default_timezone_set('Asia/Tashkent');
|
||||
// set lang to uz
|
||||
if (App::environment(['staging', 'production'])) {
|
||||
URL::forceScheme('https');
|
||||
URL::forceScheme('http');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user