PHPackages                             tbence/validate - 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. tbence/validate

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

tbence/validate
===============

Automatic validation for laravel models.

v0.2.2(8y ago)0551MITPHPPHP &gt;=7.0

Since Aug 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tbence94/laravel-validate)[ Packagist](https://packagist.org/packages/tbence/validate)[ RSS](/packages/tbence-validate/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

Laravel-Validate
================

[](#laravel-validate)

[![Total Downloads](https://camo.githubusercontent.com/a25083f3ca96a065617e1d290298219e5d71077caa0efb6567df003181417f29/68747470733a2f2f706f7365722e707567782e6f72672f7462656e63652f76616c69646174652f642f746f74616c2e737667)](https://packagist.org/packages/tbence/validate)[![Latest Stable Version](https://camo.githubusercontent.com/e2fc259c40f64a750956f41a83c452a7ff1a6e2a08e77608e25715d05a9a2ad7/68747470733a2f2f706f7365722e707567782e6f72672f7462656e63652f76616c69646174652f762f737461626c652e737667)](https://packagist.org/packages/tbence/validate)[![License](https://camo.githubusercontent.com/d748bc27676b6daa1dd16b6855b5dca23ec57d47b796dce244e289fb28ba4299/68747470733a2f2f706f7365722e707567782e6f72672f7462656e63652f76616c69646174652f6c6963656e73652e737667)](https://packagist.org/packages/tbence/validate)

Adds an AutoValidation trait to your project. If you use that trait on your models, it will automatically vaildate it by your DB scheme. These validation rules can be overridden manually from the model.

Installation
------------

[](#installation)

```
composer require tbence/validate
```

> If Laravel version &lt; 5.5, you have to manually include this line in your config/app.php:

```
TBence\Validate\Provider::class,
```

Usage
-----

[](#usage)

Add the trait and the interface to your model. (Procuct is just an example.)

```
