laravel add url query string

Solutions on MaxInterview for laravel add url query string by the best coders in the world

showing results for - "laravel add url query string"
Barnaby
02 Feb 2020
1// web.php file
2Route::get('/test', function (\Illuminate\Http\Request $request) {
3  return dump($request->query('hello')); // world 
4})->name('test');
5
6// .blade.php file
7<a href="{{ route('test', ['hello' => 'world']) }}"> // /test?hello=world
8