PHPackages                             mgip/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mgip/laravel-database-schedule

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mgip/laravel-database-schedule
==============================

Gestion Multi App de Tareas mediante Base de Datos

01PHP

Since Oct 3Pushed 3y agoCompare

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

READMEChangelogDependenciesVersions (1)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).

```
