LaravelCollective / annotations

Route and Event Annotations for the Laravel Framework
MIT License
365 stars 73 forks source link

How can I auto define routenames for Controllers like resources done #41

Closed tifidy closed 6 years ago

tifidy commented 8 years ago

Question is simple Is there a way to do that with annotations?

I need {prefix}.{@Get("url")}.controllerMethod how can I automize that?

Anahkiasen commented 8 years ago

@Controller(prefix="foobar") on the class itself works for me

Younesi commented 7 years ago

@Controller("bars", prefix="foo") creates routes for example like foo/bars/create but the route name is still without prefix! it's bars.create