coreblue/moat

There is no license information available for the latest version (v1.0) of this package.

Password protect your staging websites

v1.0 2018-10-03 07:40 UTC

This package is not auto-updated.

Last update: 2025-07-31 21:19:50 UTC


README

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