Can you place the code in a code block? As far as I can see there isn't an error in the code you provide but maybe I missed it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community