Skip to content

Commit

Permalink
Slight improvement, typehint Router in generator command for example …
Browse files Browse the repository at this point in the history
…routes (#23)
  • Loading branch information
specialtactics authored Oct 29, 2019
1 parent aa3d120 commit 40ecb04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/MakeApiResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function handle()
'/*' . PHP_EOL .
' * ' . $sectionName . PHP_EOL .
' */' . PHP_EOL .
'$api->group([\'prefix\' => \''. $routePrefix .'\'], function ($api) {' . PHP_EOL .
'$api->group([\'prefix\' => \''. $routePrefix .'\'], function (Router $api) {' . PHP_EOL .
' $api->get(\'/\', \'App\Http\Controllers\\'. $controllerName .'@getAll\');' . PHP_EOL .
' $api->get(\'/{uuid}\', \'App\Http\Controllers\\'. $controllerName .'@get\');' . PHP_EOL .
' $api->post(\'/\', \'App\Http\Controllers\\'. $controllerName .'@post\');' . PHP_EOL .
Expand Down

0 comments on commit 40ecb04

Please sign in to comment.