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.
I have a view which does not have any controller only have Route like this Route::get('index', function () { return view('index'); });
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.