Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

How to check current URL inside @if statement in Laravel

@if (request()->is('admin/myRoute'))
[do stuff]
@endif
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #check #current #URL #statement #Laravel
ADD COMMENT
Topic
Name
3+4 =