Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel blade routeIs

// This has been the best way for me to test routes with parameters

@if(url()->current() == route('named-route', 'parameter')
	// do stuff
@endif
 
PREVIOUS NEXT
Tagged: #laravel #blade #routeIs
ADD COMMENT
Topic
Name
1+7 =