Laravel-4-Generators
Laravel-4-Generators copied to clipboard
Add annotations to generated controllers
Now that Laravel allows annotations it would be nice if you could pass an --annotate
flag to use annotations on generated controllers.
So instead of having this:
/**
* Show the form for editing the specified resource.
* GET /users/{id}/edit
*
* @param int $id
*
* @return Response
*/
public function edit($id)
You'd have:
/**
* Show the form for editing the specified resource.
* @Get("users/{id}/edit")
*
* @param int $id
*
* @return Response
*/
public function edit($id)
Would be cool. Want to wait just a little more to figure out how much those annotations will be emphasized in L5.