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