From the command line run:
composer require torann/moderate
Once installed you need to register the service provider with the application. Open up
config/app.php and find the
'providers' => [ Torann\Moderate\ModerateServiceProvider::class, ]
This package also comes with a facade, which provides an easy way to call the the class. Open up `config/app.php`` and find the aliases key.
'aliases' => [ 'Moderate' => Torann\Moderate\Facades\Moderate::class, ];
Publish the configurations
Run this on the command line from the root of your project:
php artisan vendor:publish --provider="Torann\Moderate\ModerateServiceProvider"
A configuration file will be publish to
If blacklists are going to be stored in the database. Run migrate to setup the database table [see Blacklist Drivers]. Run this on the command line from the root of your project:
$ php artisan migrate