In my controller I currently give 2 parameters to the view like this:
return view('home')->with(['listings'=>$listings, 'featured_listings'=>$featured_listings]);
But when I add a third parameter it gives me the following message:
Too few arguments to function App\Http\Controllers\HomeController::index(), 0 passed and exactly 1 expected
Is there any way to give more than 2 parameters to a view from a controller?