Skip to content

Commit 6433023

Browse files
author
Admin
committed
init-fix
1 parent 917a33e commit 6433023

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Library for [laravel-crud-wizard-free](https://github.com/macropay-solutions/lar
1616

1717
## Usage
1818

19-
``` php artisan make:resource {resourceName} ```
19+
``` php artisan make:api-resource {resourceName} ```
2020

2121
This will create a template for **controller**, **service** and **model** and will print instructions on what is left to be done manually.
2222

src/Console/MakeLaravelCrudWizard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class MakeLaravelCrudWizard extends Command
1414
*
1515
* @var string
1616
*/
17-
protected $signature = 'make:resource {resource}';
17+
protected $signature = 'make:api-resource {resourceName}';
1818

1919
/**
2020
* The console command description.
@@ -36,7 +36,7 @@ public function __construct(
3636
*/
3737
public function handle(): void
3838
{
39-
$resourceName = $this->argument('resource');
39+
$resourceName = $this->argument('resourceName');
4040
$this->makeModelService->makeCompleteModelFile($resourceName, $ns = $this->laravel->getNamespace());
4141
$this->makeServiceService->makeCompleteServiceFile($resourceName, $ns);
4242
$this->makeControllerService->makeCompleteControllerFile($resourceName, $ns);

0 commit comments

Comments
 (0)