@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function handle() |
39 | 39 | { |
40 | - $this->info('Running command ' . $command = $this->command()); |
|
40 | + $this->info('Running command '.$command = $this->command()); |
|
41 | 41 | passthru($command); |
42 | 42 | } |
43 | 43 | |
@@ -47,11 +47,11 @@ discard block |
||
47 | 47 | * @return string |
48 | 48 | */ |
49 | 49 | protected function command() { |
50 | - $api = $this->option('api') ? ' --api ' : ''; |
|
51 | - $action = $this->argument('action') ? ' ' . $this->argument('action') . ' ' : ''; |
|
52 | - return 'php artisan make:route ' . $this->argument('link') . $action . ' --type=' . $this->option('type') . |
|
53 | - ' --method=' . $this->option('method') . |
|
54 | - $api . |
|
50 | + $api = $this->option('api') ? ' --api ' : ''; |
|
51 | + $action = $this->argument('action') ? ' '.$this->argument('action').' ' : ''; |
|
52 | + return 'php artisan make:route '.$this->argument('link').$action.' --type='.$this->option('type'). |
|
53 | + ' --method='.$this->option('method'). |
|
54 | + $api. |
|
55 | 55 | ' -a --menu'; |
56 | 56 | } |
57 | 57 | } |
@@ -14,6 +14,6 @@ |
||
14 | 14 | */ |
15 | 15 | public function createModel($name) |
16 | 16 | { |
17 | - passthru('php artisan make:model -m ' . snake_case($name)); |
|
17 | + passthru('php artisan make:model -m '.snake_case($name)); |
|
18 | 18 | } |
19 | 19 | } |