@@ -104,7 +104,7 @@ |
||
| 104 | 104 | $this->generate($path, $interface, 'Interface','', $interfaceBase); |
| 105 | 105 | $this->generate($path, $repository, 'Repository', '',$repositoryBase); |
| 106 | 106 | |
| 107 | - //append routes is not desired anymore |
|
| 107 | + //append routes is not desired anymore |
|
| 108 | 108 | // $webFile = Config::get('repository.route_path') . '/web.php'; |
| 109 | 109 | // $apiFile = Config::get('repository.route_path') . '/api.php'; |
| 110 | 110 | // $pluralName = strtolower(Str::plural($this->repoName)); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public function handle() |
| 62 | 62 | { |
| 63 | - $file = preg_split(' ([/\\\]) ', (string)$this->argument('name')) ?? []; |
|
| 63 | + $file = preg_split(' ([/\\\]) ', (string) $this->argument('name')) ?? []; |
|
| 64 | 64 | |
| 65 | 65 | if (!$file) { |
| 66 | 66 | return 'Something wrong with the inputs !'; |
@@ -97,12 +97,12 @@ discard block |
||
| 97 | 97 | $requestBase = Config::get('repository.base_request', "{$base}\Request"); |
| 98 | 98 | $resourceBase = Config::get('repository.base_resource', "{$base}\JsonResource"); |
| 99 | 99 | |
| 100 | - $this->generate($path, $controller, 'Controller','', $controllerBase); |
|
| 101 | - $this->generate($path, $resource, 'Resource', '',$resourceBase); |
|
| 102 | - $this->generate($path, $model, 'Entity', '',$modelBase); |
|
| 103 | - $this->generate($path, $request, 'Request', '',$requestBase); |
|
| 104 | - $this->generate($path, $interface, 'Interface','', $interfaceBase); |
|
| 105 | - $this->generate($path, $repository, 'Repository', '',$repositoryBase); |
|
| 100 | + $this->generate($path, $controller, 'Controller', '', $controllerBase); |
|
| 101 | + $this->generate($path, $resource, 'Resource', '', $resourceBase); |
|
| 102 | + $this->generate($path, $model, 'Entity', '', $modelBase); |
|
| 103 | + $this->generate($path, $request, 'Request', '', $requestBase); |
|
| 104 | + $this->generate($path, $interface, 'Interface', '', $interfaceBase); |
|
| 105 | + $this->generate($path, $repository, 'Repository', '', $repositoryBase); |
|
| 106 | 106 | |
| 107 | 107 | //append routes is not desired anymore |
| 108 | 108 | // $webFile = Config::get('repository.route_path') . '/web.php'; |