Ok, so I'm guessing you're getting the error in 2nd foreach loop, since I don't see the error line in your post. dd($input) in there, because it's not an object, it's either a string or an array.
You're calling a function from an object that isn't there, at least It's not called input
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community