andriymiz/laravel-staging-mode
最新稳定版本:v1.1.0
Composer 安装命令:
composer require andriymiz/laravel-staging-mode
包简介
Staging mode for Laravel project
关键字:
README 文档
README
This package allows you to enable a "staging mode" for your Laravel application. This mode is similar to maintenance mode, but without blocking scheduled tasks and queues.
Installation
You can install the package via composer:
composer require andriymiz/laravel-staging-mode
You can publish the config file with:
php artisan vendor:publish --tag="staging-mode-config"
Add middleware in app/Http/Kernel.php:
protected $middleware = [ // ... \StagingMode\Http\Middleware\PreventRequestsDuringStaging::class, ];
Usage
Run the following command to enable the staging mode:
php artisan staging:enable
This command will add the STAGING_MODE_SECRET environment variable to your .env file:
STAGING_MODE_SECRET=your-secret
Go to the /your-secret URL for allowing requests to your application.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-19