Answer the question
In order to leave comments, you need to log in
How to write differently?
The code
@if (!Request::is('razdel/*') and !Request::is('razdel'))
...
@endif
Answer the question
In order to leave comments, you need to log in
It turns out there is a way
@if (!Request::is('*razdel*'))
...
@endif
@if (!str_contains(Request::path(), 'razdel'))
...
@endif
https://rachidlaasri.com/php/laravel/macro/2018/04...
If you really need it so much, although for the sake of such a trifle I would not invent something.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question