How to render a view without controller in laravel

Laravel

Posted on 21 May 15 by Vickey
  1007



Render a view without controller in laravel

Route::get('home', function()
{
    return View::make('home.index')->with('subjects', subject::all());
});

you can use this in a small projects but if your projects is big then you need to create controller


If this post help you reduce time to develop, you can help me to maintain this website :)
www.000webhost.com