@@ -13,11 +13,11 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Route::get('/user', function (Request $request) { |
|
| 16 | +Route::get('/user', function(Request $request) { |
|
| 17 | 17 | return $request->user(); |
| 18 | 18 | })->middleware('auth:api'); |
| 19 | 19 | |
| 20 | -Route::group(['prefix' => 'v1','middleware' => 'auth:api'], function () { |
|
| 20 | +Route::group([ 'prefix' => 'v1', 'middleware' => 'auth:api' ], function() { |
|
| 21 | 21 | // Route::resource('task', 'TasksController'); |
| 22 | 22 | |
| 23 | 23 | //Please do not remove this if you want adminlte:route and adminlte:link commands to works correctly. |
@@ -11,11 +11,11 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Route::get('/', function () { |
|
| 14 | +Route::get('/', function() { |
|
| 15 | 15 | return view('welcome'); |
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | -Route::group(['middleware' => 'auth'], function () { |
|
| 18 | +Route::group([ 'middleware' => 'auth' ], function() { |
|
| 19 | 19 | // Route::get('/link1', function () { |
| 20 | 20 | // // Uses Auth Middleware |
| 21 | 21 | // }); |
@@ -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 | |
@@ -48,11 +48,11 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | protected function command() |
| 50 | 50 | { |
| 51 | - $api = $this->option('api') ? ' --api ' : ''; |
|
| 52 | - $action = $this->argument('action') ? ' ' . $this->argument('action') . ' ' : ''; |
|
| 53 | - return 'php artisan make:route ' . $this->argument('link') . $action . ' --type=' . $this->option('type') . |
|
| 54 | - ' --method=' . $this->option('method') . |
|
| 55 | - $api . |
|
| 51 | + $api = $this->option('api') ? ' --api ' : ''; |
|
| 52 | + $action = $this->argument('action') ? ' '.$this->argument('action').' ' : ''; |
|
| 53 | + return 'php artisan make:route '.$this->argument('link').$action.' --type='.$this->option('type'). |
|
| 54 | + ' --method='.$this->option('method'). |
|
| 55 | + $api. |
|
| 56 | 56 | ' -a --menu'; |
| 57 | 57 | } |
| 58 | 58 | } |