Tricks

Fix favicon issues when using Vapor

Jun 30, 2023
Carlos Rodríguez
FAQ, Admin panel

If you are having issues to display the favicon when you are using Laravel Vapor, you can create a route to serve it, and the problem is fixed.

Your filament.php content:

'favicon' => '/favicon.png'

Just create a new route on web.php like this:

Route::get('/favicon.png', function () {
return response()->redirectTo(config('app.asset_url') . '/favicon.png', 302, [
'Content-Type' => 'image/png'
]);
});

Now the favicon is loaded as expected.

No comments yet…