Downloads
Stars
Version
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'