Lets say I have a url like so
http://www.mywebsitetest.com/users/1023/edit/photo/12
I want to be able to use the Request with wildcards for the whole URL, but it doesn't seem to be working.
For example, I want to add a disabled attribute to an input box based on if the user is currently being edited not created, and i'm doing it like this
<select
@if(Request::has('*users/*/edit'))
readonly="readonly" disabled="disabled"
@endif
>
</select>
What am I doing wrong? How do I structure the Request::has() with wildcards when its a long complicated url?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire