How to Redirect Route with Querystring in Laravel?

By Hardik Savani | April 8, 2016 | Category : Laravel

Most of time, we work on back-end and we require to redirect route or url from controller with pass query string parameter. so laravel provide very simple way to pass query string parameter with redirect route. In following example you can see how it is possible.

In Bellow example you can see i did added highchart() function for route haddle. in that function i redirect "home" route with 2 parameter as query string like id and itemid, so url will be like this way:


And controller function will be this way:


namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\View;

class HomeController extends Controller


public function highchart()


$viewer = View::all();

return redirect()->route('home',['id'=>2,'itemid'=>3])

->with('info','We are in home back.');



Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.