the ID you're passing in is not the same as the ID you tested manually. Your logs show the failing query is using id 158, The hardcoded query that works uses id 157
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.