laravel-ardent / ardent

Self-validating, secure and smart models for Laravel's Eloquent ORM
BSD 3-Clause "New" or "Revised" License
1.39k stars 211 forks source link

Create Artisan's make:ardent with automatic validation rules #277

Open igorsantos07 opened 8 years ago

igorsantos07 commented 8 years ago

Many validation rules can be inferred from the database, such as if the field is required or not, bool, string or numeric, unique, and so on (password fields can be inferred to have a confirmed as well).

We should have an Artisan command that reads this and creates the Ardent model.

Additionally, we could add a docblock with all fields.