Laravel-Model-Validation
Laravel-Model-Validation copied to clipboard
This Laravel package auto-validates a model on save.
Ability to check if model has some rules and unique validation rule amended to work when update is made.
If the attribute name ends with _hash it will be automatically hashed. It is useful for passwords when being inserted in DB. This implementation suits you best if your fields...
Hello, I tried to install the plugin but I get this error when I add it to my composer. Problem 1 - Conclusion: remove laravel/framework v4.1.31 - Conclusion: don't install...
What should I do if the validation rules depend on whether store() or update() method is called? What should I do if I would like to gather data in different...
After adding your package , its works fine on validation but when use to select a set data by ORM , i m getting large data as recursive , its...
Basic Model validation, 2 tests defined: ``` php public function testShouldBeInvalidWithoutUsername() { $user = Factory::user(); $user->username = null; Should::beFalse($user->validate(), 'User should be invalid without username'); } public function testShouldPreventFromSavingWithoutUsername() {...
Hi, With this validation method files are not validated. When you add var_dump($this->attributes);exit; at Way/Database/Model.php:54 you will see that array doesn't contain uploaded files.
Following the model examples in the Laravel docs I had this Model-Validation method implemented in my app and inserting related models failed to work. $posts = new Posts(array('title'=>'My post title','body'=>'the...
Regardless to any validation rules Validation return only "The %field_name% field is required." messages to all required fields. And also only required messages to all attributes. This is specific to...