get value from uri request laravel code example
Example 1: get request uri from request laravel 7
Try to use the following:
\Request::getRequestUri()
Example 2: laravel get url parameters in controller
public function update($name)
{
User::where('name', $name)->first();
return view('test')->with('user', $user);
}