Вход Регистрация
Файл: src/vendor/way/generators/src/Way/Generators/templates/controller.txt
Строк: 47
<?php namespace $NAMESPACE$; use Illuminate\Routing\Controller; class
$NAME$ extends Controller { /** * Display a listing of the resource.
* GET /$COLLECTION$ * * @return Response */ public function
index() { // } /** * Show the form for creating a new resource. *
GET /$COLLECTION$/create * * @return Response */ public function
create() { // } /** * Store a newly created resource in storage.
* POST /$COLLECTION$ * * @return Response */ public function
store() { // } /** * Display the specified resource. * GET
/$COLLECTION$/{id} * * @param int $id * @return Response
*/ public function show($id) { // } /** * Show the form for
editing the specified resource. * GET /$COLLECTION$/{id}/edit * *
@param int $id * @return Response */ public function
edit($id) { // } /** * Update the specified resource in storage.
* PUT /$COLLECTION$/{id} * * @param int $id * @return Response
*/ public function update($id) { // } /** * Remove the specified
resource from storage. * DELETE /$COLLECTION$/{id} * * @param int
$id * @return Response */ public function destroy($id) { // } }
Онлайн: 2
Реклама