Skip to content

Commit

Permalink
document api switch
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 4, 2018
1 parent 8b891f1 commit 01989c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ You may register many API resource controllers at once by passing an array to th
'posts' => 'PostController'
]);

To quickly generate an API resource controller that does not include the `create` or `edit` methods, use the `--api` switch when executing the `make:controller` command:

php artisan make:controller API/PhotoController --api

<a name="restful-naming-resource-routes"></a>
### Naming Resource Routes

Expand Down

0 comments on commit 01989c0

Please sign in to comment.