/** * Display a listing of the resource. * * @return Response */ public function index() { $temas = Tema::all(); return view('temas.index', compact('temas')); }
public function index() { $temas = Tema::all(); return view('temas.listar', ['temas' => $temas]); }