How to access the Laravel's route parameters outside of the controller?

October 26, 2018

If you want to read the route params (that are normally passed to the controller) from somewhere else, you can use Route::current()->parameters().

For example:

<?php
$request_params = Route::current()->parameters();