Laravel enable https

18 Sep

In Laravel there are two way to make asset use https protocol.
Open the file app/Providers/AppServiceProvider.php.

and paste the below code in boot method.

if (App::environment() === 'production') {
URL::forceScheme('https');
}

or you can use secure_asset in each call instead of asset.

Both will works.

Leave a Reply

Your email address will not be published. Required fields are marked *

5 × 1 =