diff options
author | Camil Staps | 2016-01-22 12:01:33 +0100 |
---|---|---|
committer | Camil Staps | 2016-01-22 12:01:33 +0100 |
commit | 3a74377e861c1a401f1dffbd595f547e04eb72c8 (patch) | |
tree | 505649f58784ed0e318cb46f28777173bcdc6b90 /app/Jobs |
Initial commitlumen-app
Diffstat (limited to 'app/Jobs')
-rw-r--r-- | app/Jobs/ExampleJob.php | 26 | ||||
-rw-r--r-- | app/Jobs/Job.php | 24 |
2 files changed, 50 insertions, 0 deletions
diff --git a/app/Jobs/ExampleJob.php b/app/Jobs/ExampleJob.php new file mode 100644 index 0000000..7b65bb4 --- /dev/null +++ b/app/Jobs/ExampleJob.php @@ -0,0 +1,26 @@ +<?php + +namespace App\Jobs; + +class ExampleJob extends Job +{ + /** + * Create a new job instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Execute the job. + * + * @return void + */ + public function handle() + { + // + } +} diff --git a/app/Jobs/Job.php b/app/Jobs/Job.php new file mode 100644 index 0000000..7c873e1 --- /dev/null +++ b/app/Jobs/Job.php @@ -0,0 +1,24 @@ +<?php + +namespace App\Jobs; + +use Illuminate\Bus\Queueable; +use Illuminate\Queue\SerializesModels; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Contracts\Queue\ShouldQueue; + +abstract class Job implements ShouldQueue +{ + /* + |-------------------------------------------------------------------------- + | Queueable Jobs + |-------------------------------------------------------------------------- + | + | This job base class provides a central location to place any logic that + | is shared across all of your jobs. The trait included with the class + | provides access to the "queueOn" and "delay" queue helper methods. + | + */ + + use InteractsWithQueue, Queueable, SerializesModels; +} |