PHPackages                             ygreis/laravel-validators - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ygreis/laravel-validators

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ygreis/laravel-validators
=========================

Custom validations for the laravel framework

0.5(2y ago)11862MITPHPPHP ^7.3|^8.0

Since Apr 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ygreis/laravel-validators)[ Packagist](https://packagist.org/packages/ygreis/laravel-validators)[ RSS](/packages/ygreis-laravel-validators/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Laravel Validators
==================

[](#laravel-validators)

Custom validations for the laravel framework

📝 Summary
---------

[](#-summary)

- [Getting Started](#getting-started)
    - [Installation](#installation)
- [How to use?](#how-to-use)
    - [Basic usage](#basic-usage)
    - [Function makeValidator](#function-makevalidator)
    - [Function makeValidatorThrow](#function-makevalidatorthrow)
    - [With Requests](#with-requests)
- [Example project](#example-project)

### ✨ Getting Started

[](#-getting-started)

### Installation

[](#installation)

> **Requires:**

- **[PHP 7.3+](https://php.net/releases/)**
- **[Laravel 8.0+](https://github.com/laravel/laravel)**

**1**: First, you may use [Composer](https://getcomposer.org) to install Laravel Validators as a dependency into your Laravel project:

```
composer require ygreis/laravel-validators
```

### How to use?

[](#how-to-use)

#### Basic usage

[](#basic-usage)

The package provides two simple functions that can be used, one where errors are returned `makeValidator` and the other, if an error occurs, a custom exception is thrown that also returns errors `makeValidatorThrow`.

---

 Validator file example (click here)> Create a file in a folder, example: `\App\Validators\TestValidator`

```
