Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correção da flag --resource do Resource Controller #178

Open
wants to merge 1 commit into
base: 5.2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pt_BR/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Entretanto, é mais conveniente especificar o middleware no construtor do contro

Resource controller torna menos dolorosa a construção de recursos RESTful. Por exemplo, você pode querer criar um controller que recebe requisições HTTP para armazenar fotos. Usando o comando Artisan `make:controller` você pode rapidamente criar esse controller:

php artisan make:controller PhotoController
php artisan make:controller PhotoController --resource

O comando Artisan ira gerar um arquivo controller em `app/Http/Controllers/PhotoController.php`. O controller conterá métodos para cada operação disponvível para o recurso (resource).

Expand Down