getting the url parameters in laravel controller code example
Example 1: laravel url with parameters blade
url('path') . '?' . http_build_query(['param1' => 'value', 'param2' => 'value']);
Example 2: laravel get url parameter value in controller
// url : https://www.example.com/param1/param2/param3
$request()->segment(3); // param3