hailkongsan/laravel-antibotlink is a Laravel package.
It currently has 0 GitHub stars and 2.343 downloads on Packagist (latest version v0.1).
Install it with composer require hailkongsan/laravel-antibotlink.
Discover more Laravel packages by hailkongsan
or browse all Laravel packages to compare alternatives.
Last updated
composer require hailkongsan/laravel-antibotlink
This package supports the auto-discovery feature of Laravel 5.5 and above, So skip these Setup instructions if you're using Laravel 5.5 and above.
In app/config/app.php add the following :
1- The ServiceProvider to the providers array :
Hailkongsan\AntiBotLink\AntiBotLinkServiceProvider::class,
2- The class alias to the aliases array :
'AntiBotLink' => Hailkongsan\AntiBotLink\Facades\AntiBotLink::class
3- Publish vendor
php artisan vendor:publish --provider="Hailkongsan\AntiBotLink\AntiBotLinkServiceProvider" --tag="config"
$validate = Validator::make(Input::all(), [
'antibotlink' => 'required|antibotlink'
]);
Add the following values to the custom array in the validation language file :
'custom' => [
'antibotlink' => [
'required' => 'Please verify that you are not a robot.',
'antibotlink' => 'Invalid AntiBotLink verification!',
],
],