ardent
ardent copied to clipboard
Self-validating, secure and smart models for Laravel's Eloquent ORM
I'm getting: > FatalErrorException in Ardent.php line 432: > Class name must be a valid object or a string Whenever i try to do this: `$email->emailable()->associate(Contact::find(1));`
Hi, not a bug but a needed feature. I would like to define some `Ardent::$rules` with concatenation of constants. But Php5.6 does not want concatenation in declaration of static variables....
Sometimes I might save a User that has not yet filled out a lastname, but user is trying to save his gender. In this case, the validation will fail. In...
This may be on my end and I may just be misunderstanding the implementation, but when specifying Ardent as the Default Authentication Driver provider in 5.2's auth.php I start getting...
When attempting to save a user to the database with the `$autoHydrateEntityFromInput` attribute set to `true`, Laravel throws an exception of the `MassAssignmentException` kind, stating that, `_token` is the culprit....
The error I'm receiving: > ErrorException in Ardent.php line 821: > Invalid argument supplied for foreach() Models: ``` class ModelOne extends Ardent { public function modelThree() { return $this->morphToMany('App\ModelThree', 'modelthreeable');...
I'm trying to create a unique rule but this throw "Validation rule unique requires at least 1 parameters." when save() ``` php public static $rules = [ 'type' => 'required',...
After Laravel 5 introduces form requests (see: https://laracasts.com/series/whats-new-in-laravel-5/episodes/3), I see a few overlaps concerning validation / creating. How are you planning to play together with Laravel 5? Do you already...
All methods that issue errors have an `orFail` alternative. Thus, `save()` should have as well, throwing an exception with the validation messages.