ardent
ardent copied to clipboard
Self-validating, secure and smart models for Laravel's Eloquent ORM
I discover strange things and lost hours to find that bug. The question is intentional or is it bug? I don't see any reason to do this intentional. $token->tokenable->touch(); clear...
It might be worthwhile mentioning in readme.md that updateUniques and validateUniques need the $table property set on the model in case of unique rule not carrying the table name suffix...
Ardent does not need the table suffix on unique validation rules, which is cool. However, while validateUniques and updateUniques methods invoke buildUniqueExclusionRules for that matter, the regular save method does...
There are some changes in Ardent that made some methods incompatible or behaving differently than their original counterparts. Here are some examples that should be fixed in a new major...
I've implemented password reset functionality as described in the Laravel 4.1 documentation (http://laravel.com/docs/security#password-reminders-and-reset). Upon submitting the form to save the new password, the RemindersController (autogenerated by calling "php artisan auth:reminders-controller")...
I found out that Ardent drop this feature of Laravel: **Adding Additional Where Clauses** ``` 'email' => 'unique:users,email_address,NULL,id,account_id,1' ``` when using `unique` validation. I propose to have this code added...
When i try to carry out this test : https://gist.github.com/rafaeladel/6497954 I get the following error : https://gist.github.com/rafaeladel/6497977 I guess carrying out this in the test $user->posts()->save($post) .. Doesn't return true...
I have a function which roughly looks like this: ``` Input::replace(array('name' => 'Test Product', 'options' => array(array('title' => 'Default'), array('title' => 'Colour')))); $product = new Product; $product->save(); ``` I am...
I'm using $autoHydrateEntityFromInput = true in my model. I have the following database fields and in my fillable attribute: name, slug, sub_domain In my form I only submit the name,...
I'd like to see some test coverage for Ardent. Has anyone written any tests for it already?