Route Parameters Outside Controller in Laravel

Here’s a quick trick which allows you to access route parameters outside controllers in Laravel. You can use Route object to access and extract the route parameters.

Quick Tip : Changing the Laravel Redirect Location After Login

$params = Route::current()->parameters();

 

 

0 Comments

Leave a Comment.