{"repo":"illuminatech/validation-composite","free":true,"listed":false,"github":"https://github.com/illuminatech/validation-composite","clone":"git clone https://github.com/illuminatech/validation-composite.git","description":"Allows uniting of several validation rules into single one for easy re-usage","language":"PHP","stars":180,"topics":["laravel","validation","validator","rule","composite","combine"],"license":null,"category":"databases-storage","readme_excerpt":"Laravel Composite Validation This extension allows uniting several Laravel validation rules into a single one for easy re-usage. For license information check the LICENSE-file. Installation ------------ The preferred way to install this extension is through composer. Either run or add to the require section of your composer.json. Usage ----- The same sequence of the validation rules may repeat over the application many times. For example: you may have a set of restrictions related to the user's password, like it should be at least 8 symbols long, but shorter then 200 to fit the database field reserved for its storage. Your program may also allow user to upload an image to be his avatar, but in order to make it safe, you should validate uploaded file mime type and size. Thus validation for the user profile form may looks like following: The problem is: validation for user's password or avatar may appear in several different places. For example: password can be setup at sign-up process, during password reset and so on. You may also have a separated administration panel, which allows system administrator to adjust existing user's record or create a new one. Thus you will have to duplicate all these validation rules many times throughout your project source code. In case requirements change, for example: we decide that password length should be at least 10 symbols instead of 8, or disallow ' .png' files from avatar - you'll have to manually changes validation rules at all those p","default_branch":null,"files":null,"tree":[],"storefront":"/r/illuminatech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/illuminatech/validation-composite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}