PHPackages                             robersonfaria/laravel-database-schedule - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. robersonfaria/laravel-database-schedule

ActiveLibrary[Database &amp; ORM](/categories/database)

robersonfaria/laravel-database-schedule
=======================================

Manage your Laravel Task Scheduling in a friendly interface and save schedules to the database.

1.4.0(2y ago)332116.1k—1.5%60[11 issues](https://github.com/robersonfaria/laravel-database-schedule/issues)[6 PRs](https://github.com/robersonfaria/laravel-database-schedule/pulls)MITPHPPHP ^7.2|^8.0CI failing

Since Mar 10Pushed 7mo ago6 watchersCompare

[ Source](https://github.com/robersonfaria/laravel-database-schedule)[ Packagist](https://packagist.org/packages/robersonfaria/laravel-database-schedule)[ RSS](/packages/robersonfaria-laravel-database-schedule/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (46)Used By (0)

[![Laravel Database Schedule](https://camo.githubusercontent.com/61a6bfdf78bba7fb107d565ebc28dd78395fdab642ea78237cd0d59cf84eaa83/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323044617461626173652532305363686564756c652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d726f626572736f6e66617269612532466c61726176656c2d64617461626173652d7363686564756c65267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d5363686564756c652b796f75722b7461736b732b7468726f7567682b612b64617368626f6172642b616e642b776974686f75742b686176696e672b746f2b6465706c6f792b7468652b6170706c69636174696f6e2e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d63616c656e646172267769647468733d6175746f26686569676874733d333530)](https://camo.githubusercontent.com/61a6bfdf78bba7fb107d565ebc28dd78395fdab642ea78237cd0d59cf84eaa83/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323044617461626173652532305363686564756c652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d726f626572736f6e66617269612532466c61726176656c2d64617461626173652d7363686564756c65267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d5363686564756c652b796f75722b7461736b732b7468726f7567682b612b64617368626f6172642b616e642b776974686f75742b686176696e672b746f2b6465706c6f792b7468652b6170706c69636174696f6e2e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d63616c656e646172267769647468733d6175746f26686569676874733d333530)

Documentation
=============

[](#documentation)

This librarian creates a route(default: /schedule) in your application where it is possible to manage which schedules will be executed at any given moment, these schedules are recorded in the database and can be changed, activated, inactivated or deleted via the interface without the need for a new application deployment.

[![List Schedules](docs/list-schedule1.png)](docs/list-schedule1.png)

[![Create Schedules](docs/new-schedule2.png)](docs/new-schedule2.png)

[![Show History Schedules](docs/show-history1.png)](docs/show-history1.png)

Installation
------------

[](#installation)

1. Run `composer require robersonfaria/laravel-database-schedule`
2. Run `php artisan migrate`

### Environment variables

[](#environment-variables)

You can set the following environment variables to configure schedules:

- SCHEDULE\_TIMEZONE : The default is the same configured for the application, but if you need the schedules to run in a different timezone, it is possible to configure it with this variable
- SCHEDULE\_CACHE\_DRIVER : The default is `file`
- SCHEDULE\_CACHE\_ENABLE : The default is disabled when `APP_DEBUG=true` and enabled when `APP_DEBUG=false`

### Configurations

[](#configurations)

There are several library configuration options, to change the settings you can get the configuration file for your project

```
php artisan vendor:publish --provider="RobersonFaria\DatabaseSchedule\DatabaseSchedulingServiceProvider" --tag="config"

```

### Dashboard Authorization

[](#dashboard-authorization)

Dashboard Authorization exposes a dashboard at `/schedule` URI.

In the configuration file it is possible to define whether to restrict access to route `/schedule`, the default is true. If access is restricted, the user must be logged in and meet the requirements defined in the `viewDatabaseSchedule` [gate controls access](https://laravel.com/docs/8.x/authorization#gates).

```
