A package with extra validation to Laravel requests
gabrielopes01/laravel-extra-validators is a Laravel package for a package with extra validation to laravel requests.
It currently has 0 GitHub stars and 15 downloads on Packagist (latest version 0.2.0).
Install it with composer require gabrielopes01/laravel-extra-validators.
Discover more Laravel packages by gabrielopes01
or browse all Laravel packages to compare alternatives.
Last updated
This package has some extra Validations to Laravel Request's, if you want to use any validator you need to extend on your app service provider adding this line inside the boot function:
use Gabrielopes01\LaravelExtraValidators\ExistsLike;
public function boot()
{
Validator::extend(ExistsLike::handle(), ExistsLike::class);
}
Validator::extend(ExistsLike::handle(), ExistsLike::class);
'field_req' => 'exists_like:Namespace\Class,collum_name'
Validator::extend(Post::handle(), Post::class);
'field_num' => 'post'
Validator::extend(Put::handle(), Put::class);
'field_num' => 'put'
Validator::extend(Delete::handle(), Delete::class);
'field_num' => 'delete'