Requests

0
537
views

To obtain an instance of the current HTTP request via dependency injection, you should type-hint the Illuminate\Http\Request class on your controller constructor or method. The current request instance will automatically be injected by the service container:

Reference :
https://lumen.laravel.com/docs/5.2/requests
https://github.com/redzjovi/lumen52learning/commit/e72a2c3e4771c79b2ec05db36a1848c6404b27bf

Previous articleControllers
Next articleResponses
SHARE

LEAVE A REPLY

Please enter your name here
Please enter your comment!