Support the ongoing development of Laravel.io →
Database Eloquent Validation

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!

Last updated 3 years ago.
0

I am using this package, I found it to be very useful so far.

Last updated 3 years ago.
0

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!

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

neon5 neon5 Joined 21 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.