Level 122
Sorry, don't understand
Greetings,
In my current application I have has the home a small form that i get from a simple view:
Route::get('/', function () {
$md_list = MedicalPlansList::all();
return view('Form.guestForm', compact('md_list'));
});
At the last minute i need to change the home to another page that in order to access it you need to type
localhost/dashboard
I cant simple put return view dashboard since this view is getting data from a controller in the index
Route::resource('dashboard', 'DashboardController')->middleware('auth');
How can i make the dashboard, without typing on the heather localhost/dashboard, as the home without moving / copying everything on the Controller index?
Thank you for your help
Please or to participate in this conversation.