Return a view from a route with the view()
helper
Route::get('/', function () { return view('greeting', ['name' => 'James']); });
See: View Routes and Helpers
Comments
Return a view from a route with the view()
helper
Route::get('/', function () { return view('greeting', ['name' => 'James']); });
See: View Routes and Helpers