Search code examples
phplaravelheroku

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


Solution

  • 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') }}">