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
Post a Comment