Laravel: mixed content error

mixed content error

This is a common issue that happens on configuring ssl for the domain.

This article explains the steps to resolve it.

Step1: Update the APP_URL to https in .env file of Laravel.


Where domain need to be replaced with the required domain name.

Step2: Add the following lines to the beginning of api.php or web.php inside routes folder.

if (App::environment('production')) {

That's all…