acdphp/laravel-schedule-police 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

acdphp/laravel-schedule-police

最新稳定版本:v2.0.3

Composer 安装命令:

composer require acdphp/laravel-schedule-police

包简介

Stop, start or execute scheduled commands from a simple dashboard without redeploying, while maintaining the visibility, control, and reviewability of the configurations in your codebase.

README 文档

README

Latest Stable Version

Use this if you need to:

  • ✅ Stop and start scheduled commands without redeploying.
  • ✅ Execute commands without going into server console.
  • ✅ Keep the visibility, control, and reviewability of the schedule configurations in your codebase.

Compatibility Matrix

Laravel Schedule Police
11.x ~ 12.x 2.x
8.x ~ 10.x 1.x

Installation

  1. Install the package

    composer require acdphp/laravel-schedule-police
  2. Run the migration.

    php artisan migrate
  3. Publish assets

    php artisan vendor:publish --tag=schedule-police-assets --force

Config

You may override the config by publishing it.

php artisan vendor:publish --tag=schedule-police-config

You may also just define environment variables if you don't need to publish the config.

  • Disable command execution in the dashboard.
SCHEDULE_POLICE_ALLOW_EXECUTE_CMD=false
  • Add prefix to routes.
SCHEDULE_POLICE_URL_PREFIX=your-prefix

Dashboard

After installation, you may access the dashboard via the /schedule-police route.

Authorization

By default, you will only be able to access this dashboard in the local environment. However, you may specify authorization for non-local environments by defining viewSchedulePolice gate, typically within the boot method of the App\Providers\AuthServiceProvider class.

public function boot(): void
{
    Gate::define('viewSchedulePolice', function (User $user) {
        // return true or false
    });
}

Screenshots

Events list page

events page

Execute page

execute page

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 14.27k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 52
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 51
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-16