Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 53 lines (34 sloc) 1.15 KB
title template chapter
Get Started
documentation.twig::content_inner
1

Installation

From the command line run:

composer require torann/moderate

Laravel

Once installed you need to register the service provider with the application. Open up config/app.php and find the providers key.

'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 config/moderate.php.

Migration

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