Laravel-4-Generators icon indicating copy to clipboard operation
Laravel-4-Generators copied to clipboard

Add annotations to generated controllers

Open Anahkiasen opened this issue 9 years ago • 1 comments

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)

Anahkiasen avatar Oct 10 '14 11:10 Anahkiasen

Would be cool. Want to wait just a little more to figure out how much those annotations will be emphasized in L5.

JeffreyWay avatar Oct 10 '14 20:10 JeffreyWay