Download the PHP package manzadey/request-rules-fill without Composer
On this page you can find all versions of the php package manzadey/request-rules-fill. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download manzadey/request-rules-fill
More information about manzadey/request-rules-fill
Files in manzadey/request-rules-fill
Download manzadey/request-rules-fill
More information about manzadey/request-rules-fill
Files in manzadey/request-rules-fill
Vendor manzadey
Package request-rules-fill
Short Description Class for create rules for Laravel requests
License MIT
Package request-rules-fill
Short Description Class for create rules for Laravel requests
License MIT
Please rate this library. Is it a good library?
Informations about the package request-rules-fill
RequestFillRules
Данный класс предназначен для красивого (ИМХО) и упрощенного заполнения правил валидации в реквестах.
Установка:
Как пользоваться:
Добавляем поля и правила валидации:
Заменяем правило в поле:
Добавляем к полю правило:
Выводим правила в виде массива:
Наглядный пример использования данного класса:
Создаем класс ArticleStoreRequest
, в нем создадим метод makeRules
и создадим новый объект RequestRulesFill
:
Далее создаем класс ArticleUpdateRequest
, который унаследует класс ArticleStoreRequest
с его правилами:
All versions of request-rules-fill with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.3
The package manzadey/request-rules-fill contains the following files
Loading the files please wait ....