anovanmaximuz / laravel-validation
validasi request for laravel
v1.0.3
2023-09-06 09:57 UTC
Requires
- php: ^7.3|^8.0
This package is auto-updated.
Last update: 2024-12-08 08:49:15 UTC
README
Laravel Validation was created by, and is maintained by Ano Van, and is a package designed to support validation request on Laravel.
- It's included on Laravel Lumen, the most popular free, open-source PHP framework in the world.
Installation & Usage
Requires PHP 7.3+
Require Laravel Validation using Composer:
composer require anovanmaximuz/laravel-validation
As an example, here is how to require Laravel Validation on Laravel 8.x:
use Anovanmaximuz\LaravelValidation as Validation; ... $paramsChecks = new Validation\request($request, [ 'partnerServiceId' => 'required|max:9|string', 'customerNo'=>'required|string|max:20', 'virtualAccountNo'=>'required|string|max:28', 'trxDateInit'=>'required|date|max:25', 'channelCode'=>'required|int|max:4', 'inquiryRequestId'=>'required|string|max:128' ],'parameter', true);
Support Validations
- Request parameter validation POST, GET
- Header validation