The answer is in the error message - you're not passing the variable ultimosProdutos
into your view. You'll need to pass it in, perhaps replacing ->with('getProduto', $getProduto)
with ->with('ultimosProdutos
, $getProduto)`.
deringer said:
The answer is in the error message - you're not passing the variable
ultimosProdutos
into your view. You'll need to pass it in, perhaps replacing->with('getProduto', $getProduto)
with->with('ultimosProdutos
, $getProduto)`.
In all my controllers so I'll have to pass this variable? Because every page of my site I extends the index page.
Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community