The Spam Blocker package has a few system requirements:
- PHP >= 7.0
Spam Blocker | Laravel |
---|---|
You can install this package via Composer by running this command: composer require arcanedev/spam-blocker
.
NOTE : The package will automatically register itself if you're using Laravel
>= v5.5
, so you can skip this section.
Once the package is installed, you can register the service provider in config/app.php
in the providers
array:
// config/app.php
'providers' => [
...
Arcanedev\SpamBlocker\SpamBlockerServiceProvider::class,
],
(Optional) And for the Facades:
// config/app.php
'aliases' => [
...
'SpamBlocker' => Arcanedev\SpamBlocker\Facades\SpamBlocker::class,
];
To publish the config file, run this command:
php artisan vendor:publish --provider="Arcanedev\SpamBlocker\SpamBlockerServiceProvider"