Why do you need the $data in the function ? I don't see it being used in the code.
Or are you trying to run the validation on the $data and not the $request->all() ?
I am yet to implement $data so it will be there. I just need to know will it work?
My request has passed its validation now its time to deal with the data is my thinking
But wouldn't $request->all() be the data that came from the form that your validating?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community