xxxxxxxxxx
\Request::fullUrlWithQuery()
\Request::query()
\Request::getQueryString() //Apenas as query strings
xxxxxxxxxx
//Only Few Value Get From Url
$url = \Request::segment(1);
dd($url);
or
echo $url;
xxxxxxxxxx
public function update($name)
{
User::where('name', $name)->first();
return view('test')->with('user', $user);
}
xxxxxxxxxx
Route::get('/posts/{post}/comments/{comment}', function ($postId, $commentId) {
return view('name of the view')->with('postId',$postId);
});