File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Foxws \Algos ;
4
4
5
+ use Foxws \LaravelAlgos \Commands \MakeAlgo ;
5
6
use Spatie \LaravelPackageTools \Package ;
6
7
use Spatie \LaravelPackageTools \PackageServiceProvider ;
7
8
@@ -11,7 +12,10 @@ public function configurePackage(Package $package): void
11
12
{
12
13
$ package
13
14
->name ('laravel-algos ' )
14
- ->hasConfigFile ('algos ' );
15
+ ->hasConfigFile ('algos ' )
16
+ ->hasCommands ([
17
+ MakeAlgo::class,
18
+ ]);
15
19
}
16
20
17
21
public function packageRegistered (): void
Original file line number Diff line number Diff line change 5
5
use Illuminate \Console \GeneratorCommand ;
6
6
use Symfony \Component \Console \Input \InputArgument ;
7
7
8
- class MakeWorkflow extends GeneratorCommand
8
+ class MakeAlgo extends GeneratorCommand
9
9
{
10
10
protected $ name = 'make:algo ' ;
11
11
12
12
protected $ description = 'Create a new algo class ' ;
13
13
14
- protected $ type = 'Action ' ;
14
+ protected $ type = 'Algo ' ;
15
15
16
16
protected function getStub (): string
17
17
{
You can’t perform that action at this time.
0 commit comments