27 lines
482 B
PHP
Executable File
27 lines
482 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
if (env('APP_ENV') === 'production') {
|
|
$this->app['request']->server->set('HTTPS','on'); // this line
|
|
}
|
|
}
|
|
}
|