ardent icon indicating copy to clipboard operation
ardent copied to clipboard

Self-validating, secure and smart models for Laravel's Eloquent ORM

Results 102 ardent issues
Sort by recently updated
recently updated
newest added

I'd like to see hooks on relationships, similar to the current hooks on models. Like when you attach a Book to an Author, I'd like to see some event fired...

If I have more than one custom validation, it screws up my test results big time. The errors reported are bizarre. Till my model had 1 custom validation rule, things...

If you overwrite __call in a derived class, Ardent's relationship mechanism breaks. Usually you would write something like class myModel extends Ardent { public static $relationsData = array ('other' =>...

Is there a way to validate on one rule out of two? My use case is some users sign up natively with email, but those that sign up with Twitter...

I have been using ardent for a model which also uses [eloquent-sluggable](https://github.com/cviebrock/eloquent-sluggable). Following the [documentation](https://github.com/cviebrock/eloquent-sluggable/blob/master/README-Ardent.md) from there, I added a `beforeValidate` function that builds the "slug" before the validation happens....

This is what my rules are in my model that is extending a package that extends Ardent: ``` public static $rules = array( 'email' => 'required|unique:users|email|max:100', 'password' => 'sometimes|required|confirmed', 'password_confirmation'...

Eloquent class extends Model , and provided where() and find() static methods, for object queries, why Ardent not extending from it, but extending from Model? This is by design? or...

The Ardent always throw a exception when I call model->save() if the model's rule contains a unique rule. I find the issue #86 seem to fix the problem in the...

Validator Class in Laravel has customAttributes support, it's very useful for i18n or print better notice for end users. Such as : $niceNames = array( 'first_name' => 'First Name' );...

[Magniloquent](https://github.com/philipbrown/magniloquent) got cool ideas like `niceNames` (that could be implemented both as an attribute and method), improved purging, and maybe reimplemented relationships. Those ideas could be merged in Ardent :)...

enhancement
RFC