Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get route parameters in blade

//Swap out PARAMETER_HERE with the specific parameter you need.

Route::current()->parameter('PARAMETER_HERE')
//A common use case for this would be to output specific content based on conditional logic.

@if( Route::current()->parameter('account') === 'edit' )
     //Edit Account Form Here
@endif
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #route #parameters #blade
ADD COMMENT
Topic
Name
6+5 =