updated https handling for production
This commit is contained in:
parent
54355fc942
commit
4c99626acc
1 changed files with 3 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ namespace App\Providers;
|
||||||
|
|
||||||
use App\Models\Interfaces\MovieDbInterface;
|
use App\Models\Interfaces\MovieDbInterface;
|
||||||
use App\Services\OmdbService;
|
use App\Services\OmdbService;
|
||||||
|
use Illuminate\Support\Facades\URL;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
|
||||||
class AppServiceProvider extends ServiceProvider
|
class AppServiceProvider extends ServiceProvider
|
||||||
|
|
@ -21,8 +22,8 @@ class AppServiceProvider extends ServiceProvider
|
||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
if ($this->app->environment('production')) {
|
if (app()->environment('production')) {
|
||||||
\URL::forceScheme('https');
|
URL::forceScheme('https');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue