Download the PHP package sefirosweb/laravel-cronjobs without Composer
On this page you can find all versions of the php package sefirosweb/laravel-cronjobs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sefirosweb/laravel-cronjobs
More information about sefirosweb/laravel-cronjobs
Files in sefirosweb/laravel-cronjobs
Package laravel-cronjobs
Short Description Package for made and modify easly the cronjob system
License MIT
Informations about the package laravel-cronjobs
Laravel - Cronjobs
Requeriments
Must have a schedule:work running
For test execute:
If you have queue in redis must have running queue listener
For test execute:
Installation - Composer
You can install the package via composer:
Or manually add this to your composer.json:
composer.json
If you are using Laravel 5.5 and up, the service provider will automatically get registered.
For older versions of Laravel (<5.5), you have to add the service provider:
config/app.php
Install database migrations
Publish React front and config:
Publish config:
CAUTION: YOU MUST BE SECURIZE THIS URL PATH, THIS PACKAGE HAVE FULL ACCESS TO ALL CONTROLLERS ADDING CORRECT NAMESPACES
Easy way: config/aravel-cronjobs.php
Extra: for the advanced access list I recommend my other package:laravel-access-list Usage:
Usage
Go to http://your_app/cronjobs
- Name => Free Text
- Description => Free Text
- Controller => Must add the namespace + controller Ex:
App\Http\Controllers\FooController
- Function => Must be a public or static function without mandatory parameters
- Edit cron, is a Linux cron job system Ex: 10 * * * * (Execute every hour at 10 AM) you can see preview of time runs
Events
Added 2 event emitters to catch if cronjob has been executed successfully or have an error:
Artisan
You can list and execute manually cronjobs via artisan:
Show cronjobs:
Execute manually cronjob: