Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-validation maintained by anovanmaximuz

Description
validasi request for laravel
Author
Last update
2024/01/08 07:48 (dev-master)
License
Downloads
34

Comments
comments powered by Disqus

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