Understanding REST Controllers Laravel -


after studying online links, i've seen have single route

route::controller('categories', 'categoriescontroller');

and then, setting url's in forms of blade templated views, reach functions of controllers. getsignup() etc.

it's basic question. how these things work?

thanks alot, have nice day :d

if declare routes request http://yoursite.com/categories routed categoriescontroller's getindex() method , form posting http://yoursite.com/categories/data (say) routed postdata() method.

you can build more complex names using hyphens in routes. posting http://yoursite.com/categories/update-stuff route controller's postupdatestuff() method.

there's explanation of in docs. though use cases prefer use resource controllers explained afterwards.


Comments

Popular posts from this blog

Change the color of an oval at click in Java AWT -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -