joeriabbo/smart-validation

There is no license information available for the latest version (dev-main) of this package.

Laravel smart validation Package

Maintainers

Package info

github.com/Joeri-Abbo/php-smart-validation

pkg:composer/joeriabbo/smart-validation

Statistics

Installs: 5 048

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-03-29 20:05 UTC

This package is auto-updated.

Last update: 2026-03-29 20:05:54 UTC


README

Setup easy validation without any configure except your database configuration. What this package does is getting your settings of the colums from your given table and generate a validation rules for your.

Installation

Run the following command to install the package.

composer require joeriabbo/smart-validation

After installing go to your request that normaly would extend FormRequest and now extend SmartValidation.

use JoeriAbbo\SmartValidation\Http\Requests\AbstractTableValidationRequest;
class StoreRequest extends AbstractTableValidationRequest

Now you have to add the table name by filling the table function. Inside your validation class.

public static function getTable(): string
{
    return 'demo';
}

The validation rules are generated by the package. And your validation rules are now the same as your database table rules.