This package makes it easy to password protect your Laravel staging websites.
You can install the package via composer:
composer require coreblue/moat
Register the Moat middleware in the application's route middleware groups.
//app/http/Kernel.php
protected $middlewareGroups = [
'web' => [
\CoreBlue\Moat\Middleware\ApplyMoat::class,
],
];
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