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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community