request url get variables in laravel blade file code example
Example 1: how to get variable from url in laravel
request('variable')
Example 2: laravel url with parameters blade
url('path') . '?' . http_build_query(['param1' => 'value', 'param2' => 'value']);