I'm trying to adhere to the thin controller, fat model design so I want to put my validation in my model.
In searching around I came across this package named Ardent https://github.com/laravelbook/ardent
I'm not a big fan of adding a lot of packages but this looks helpful.
How do most people handle something like validating a save via the model?
Thanks!
I am using this package, I found it to be very useful so far.
Yes, this package is absolutely great. However, If you want an example or want to utilize it with jQuery validation. I have created a model that sit on top of Ardent.
Have a look at https://gist.github.com/dakshhmehta/7911283
Also, It add more feature such as filter form and database scope for it if its required for your project.
Hope, this will help!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community