Skip to content

Commit b03a414

Browse files
committed
Add job stub file
1 parent bb89cb1 commit b03a414

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

stubs/job.stub

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace {{ namespace }};
4+
5+
use Illuminate\Bus\Queueable;
6+
use Illuminate\Contracts\Queue\ShouldQueue;
7+
use Illuminate\Foundation\Bus\Dispatchable;
8+
use Illuminate\Queue\InteractsWithQueue;
9+
use Illuminate\Queue\SerializesModels;
10+
use Safemood\Workflow\Action;
11+
12+
class {{ class }} extends Action implements ShouldQueue
13+
{
14+
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
15+
16+
/**
17+
* Create a new job instance.
18+
*/
19+
public function __construct()
20+
{
21+
//
22+
}
23+
24+
/**
25+
* Execute the job.
26+
*
27+
* @param array $context
28+
* @return void
29+
*/
30+
public function handle(array $context): void
31+
{
32+
// Job logic goes here
33+
}
34+
}

0 commit comments

Comments
 (0)