You can send data to view using redirects in Laravel by using below code
$data=['id'=>1,'name'=>'test'];
return Redirect::route('Controller.method')->with('data' => $data);
// retrieving data
Session::get('data');
This post is submitted by one of our members. You may submit a new post here.
Laravel interview Questions © 2019 - Designed by PSD to HTML