V
V
VicTHOR2021-01-12 12:07:11
Laravel
VicTHOR, 2021-01-12 12:07:11

How to detect 404 in master template?

There is a custom 404 error template that extends the main template.
How in the main template to determine that the current page has a 404 status?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VicTHOR, 2021-01-12
@VicTHOR

@if (isset($exception) && $exception->getStatusCode() == 404)
@endif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question