Add your classesion = 1 inside the function just before $query It could be that the function doesn’t know what the variable outside of its scope is
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community