Skip to content
Advertisement

laravel project deploy to Heroku but bootstrap styles missing

I deploy laravel project on Heroku.

but bootstrap styles a missing.

bootstrap is in public dir

in browser network showing this

enter image description here Showing status blocked

Advertisement

Answer

You are looking for secure_asset

Generate a URL for an asset using HTTPS:

In your code:

<link rel="stylesheet" href="{{ secure_asset('css/AdminLTE.min.css') }}">
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement