How to pass data to view in Laravel?

The Solution to How to pass data to view in Laravel? is


You can pass data to the view using the with method.

return View::make('blog')->with('posts', $posts);

~ Answered on 2013-08-20 17:53:36


Most Viewed Questions: