Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 5967619

Browse files
committed
remove unnecessary code
1 parent bd9db1e commit 5967619

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To do that, put this in your shell profile (~/.bash_profile, ~/.zshrc, ~/bashrc)
3838
#### Make
3939
- `make:controller <controller> [<service>]`
4040
- `make:feature <feature> [<service>]`
41-
- `make:job <job> <domain>`
41+
- `make:job <job> <domain> [--queue]`
4242
- `make:service <name>`
4343
- `make:model <model>`
4444
- `make:request <request> [<service>]`

src/Generators/stubs/job.stub

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,23 @@ use {{foundation_namespace}}\Job;
55

66
class {{job}} extends Job
77
{
8+
/**
9+
* Create a new job instance.
10+
*
11+
* @return void
12+
*/
813
public function __construct()
914
{
10-
15+
//
1116
}
1217

18+
/**
19+
* Execute the job.
20+
*
21+
* @return void
22+
*/
1323
public function handle()
1424
{
15-
25+
//
1626
}
1727
}

src/Generators/stubs/queueable-job.stub

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22
namespace {{namespace}};
33

4-
use {{foundation_namespace}}\Job;
5-
use Lucid\Foundation\QueueableJob;
4+
use {{foundation_namespace}}\QueueableJob;
65

76
class {{job}} extends QueueableJob
87
{

0 commit comments

Comments
 (0)