laravel controller action route

Setting up first route,view,controller and sending data to view laravel 5

Example Route

Route::get('home','HomeController@index');  // you tell if url has /home then home controller index function handles that

Then Controller will be

namespace App\Http\Controllers;
class HomeController extends Controller
	//this is the funtion handling the /home
	public function index(){
		$data = "abc"; // here is sample data
	    return View::make('home/myhome', array('data' => $data));  // this is html file will be saved in views/home/myhome.blade.php



{{ $data }}