Skip to content

mamitech/laravel-scheduler-webui

This branch is 15 commits ahead of acdphp/laravel-schedule-police:refs/heads/main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3771a9c · Nov 13, 2024

History

21 Commits
Apr 16, 2024
Oct 3, 2024
Apr 16, 2024
Dec 16, 2023
Dec 16, 2023
Oct 3, 2024
Dec 16, 2023
Nov 13, 2024
Oct 3, 2024
Dec 16, 2023
Dec 13, 2023
Apr 16, 2024
May 6, 2024
Dec 16, 2023
Dec 16, 2023

Repository files navigation

Laravel Schedule Police

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 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 77.4%
  • Blade 17.1%
  • CSS 3.7%
  • JavaScript 1.8%