Support the ongoing development of Laravel.io →
Views Blade Forms
Last updated 2 years ago.
0

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)`.

Last updated 2 years ago.
0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Hejafe hejafe Joined 30 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.