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!',
],
],
- Clean up and refactor code.
- Add more option to render image function.
- Finish readme (usage).