There are times when a controller will only export a single action. We should be able to use shorthand its integration with a router by only specifying the controller name. If there is no method in the action property, then it is assumed that the router is binding to a well-defined method.
There are times when a controller will only export a single action. We should be able to use shorthand its integration with a router by only specifying the controller name. If there is no method in the action property, then it is assumed that the router is binding to a well-defined method.
This method should be named
__invoke
.