Ardent is a package that provides self-validating smart models for the Laravel framework's Eloquent O/RM.
Ardent provides self-validating smart models for Laravel Framework 4's Eloquent O/RM, based on the Aware bundle for Laravel 3. With it, Laravel validation rules can be inserted into the model's class as a tag variable. At save, the model will validate itself and modify the database or in faliure it gives error messages.
Installation
Add laravelbook/ardent
as a requirement to composer.json
:
{
"require": {
"laravelbook/ardent": "dev-master"
}
}
Update the packages with composer update
or install with composer install
.