Support the ongoing development of →
IOC Views
Last updated 1 year ago.

The variable $yovar is not available inside of the closure (since it's defined outside). To "import" it into the function you'll have to use the use statement like this:

function ($view) use ($yovar) {

Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.