/moat

Password protect your staging sites

Primary LanguagePHP

Moat

This package makes it easy to password protect your Laravel staging websites.

Installation

You can install the package via composer:

composer require coreblue/moat

Setup

Register the Moat middleware in the application's route middleware groups.

//app/http/Kernel.php
protected $middlewareGroups = [
    'web' => [
        \CoreBlue\Moat\Middleware\ApplyMoat::class,
    ],
];

Usage

To get started with Moat run the following command.

php artisan moat:create

Once the create command has been run you will be able to run the following commands.


You can enable Moat via:

php artisan moat:up

You can disable Moat via:

php artisan moat:down

You can set a new password via:

php artisan moat:password

You can check the current status via:

php artisan moat:status