Download the PHP package engency/laravel-model-validation without Composer
On this page you can find all versions of the php package engency/laravel-model-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download engency/laravel-model-validation
More information about engency/laravel-model-validation
Files in engency/laravel-model-validation
Package laravel-model-validation
Short Description Model validation for Laravel projects
License MIT
Informations about the package laravel-model-validation
Laravel model validation
Requirements
- PHP 7.1+
- The Laravel framework 7.0+
Installation
You may use composer to install the laravel-model-validation plugin into your Laravel project;
Use the Validatable trait on the models you would like to perform validation on.
Create a new directory in the app directory called 'ModelValidators'. This directory will contain all rules which apply for the concerning models. For each model using the Validatable trait, create a file called {name of the model}ModelValidator.php. A ModelValidator should look like following;
Validating and creating a new user is now very easy;
Updating an existing users works almost the same;
You could add additional sets of rules to each model;
For a list of all rules, please visit the Laravel Validation documentation; https://laravel.com/docs/validation
Contributors
- Frank Kuipers (GitHub)
License
This plugin is licenced under the MIT license.
All versions of laravel-model-validation with dependencies
illuminate/validation Version ^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/database Version ^7.0|^8.0|^9.0|^10.0|^11.0