We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8da805d + 426e810 commit 855a81bCopy full SHA for 855a81b
src/Commands/GenerateApi.php
@@ -22,7 +22,6 @@ class GenerateApi extends Command
22
23
/**
24
* Create a new command instance.
25
- *
26
*/
27
public function __construct()
28
{
@@ -36,7 +35,7 @@ public function __construct()
36
35
37
public function handle()
38
39
- if(empty($this->option('model'))){
+ if (empty($this->option('model'))) {
40
$this->error('Model Name Argument not found!');
41
42
return false;
src/LaravelApiGenerator.php
@@ -82,7 +82,8 @@ public function generateRoute()
82
return $this->result;
83
}
84
85
- private function getStubContents($stubName){
+ private function getStubContents($stubName)
86
+ {
87
return file_get_contents(self::STUB_DIR.$stubName);
88
89
0 commit comments