06.10.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HTTP Requests<br />

• Accessing The Request A> - Basic Request Information A> - PSR-7 Requests<br />

• Retrieving Input A> - Old Input A> - Cookies A> - Files<br />

Accessing The Request<br />

To obtain an instance of the current HTTP request via dependency injection, you should type-hint<br />

the Illuminate\Http\Request class on your controller constructor or method. The current request<br />

instance will automatically be injected by the service container:<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!