title: Variable undefined error in laravel blade view
body: <p>Hey as i am passing a blade view which is having it own controller also i am including it into the view which does not have its own controller. it gives me an undefined variable error can any one help me how to it. </p>
  
  <p>I have a view which does not have any controller only have Route like this <code>Route::get('index', function () { return view('index'); });</code> in this view i am passing another view which having its own controller and also having some data from an array. but after using this view inside the view i get undefined variable error.</p>