Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function show($id)
- {
- $categoria = Categoria::find($id);
- return view('categorias.show',compact('categoria','cate'));
- }
- @foreach ($categoria as $cat)
- {{ $cat->nombre }}
- @foreach ($cat->peliculas as $pelicula)
- {{ $pelicula->nombre }}
- @foreach
- @endforeach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement