send redirect and setting cookie, using laravel 5 send redirect and setting cookie, using laravel 5 laravel laravel

send redirect and setting cookie, using laravel 5


Why don't you do return Redirect::to('home');

Of course you can use chaining to do more things, both in L4 and L5.

L4: return Redirect::to('home')->withCookie($cookie);

L5: return redirect('home')->withCookie($cookie);