laravel get url parameter code example
Example 1: how to get variable from url in laravel
request('variable')
Example 2: laravel get all request parameters
$request->input('name');
$request->input('user.name'); // fetch from user object
Example 3: laravel url with parameters blade
url('path') . '?' . http_build_query(['param1' => 'value', 'param2' => 'value']);
Example 4: how to see with page reuested in laravel
$request->fullUrl()