/** * Display a listing of the resource. * * @return Response */ public function index() { // $continents = Continent::all(); echo 'hi'; dd($continents); }
public function index() { $continents = Continent::all(); return view('continents.index', compact('continents')); }