coreblue / moat
Password protect your staging websites
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/coreblue/moat
This package is not auto-updated.
Last update: 2026-01-15 23:22:26 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