I deploy laravel project on Heroku.
but bootstrap styles a missing.
bootstrap is in public dir
in browser network showing this
I deploy laravel project on Heroku.
but bootstrap styles a missing.
bootstrap is in public dir
in browser network showing this
Go to app >> Providers >> AppServiceProvider.php
Import this:
use \Illuminate\Support\Facades\URL;
Under the boot method, paste the code below
if ($this->app->environment('production')) {
URL::forceScheme('https');
}
Note: The code above checks whether you are in development mode or production to render your assets.
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') }}">