mercredi 29 août 2018

Can a view check if the page is 404?

My 404.blade.php view is using my default layout, but if the page is 404 i want to hide some views I include in the default layout. Is this possible?

Something like

@if ($page->notFound)

Or do I really have to create a custom layout to use in the 404 view.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire