11.08.2017 Views

codebright

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Request Data 130<br />

If we visit / then we receive bool(false), and if we visit /?foo=bar we receive bool(true). We call<br />

this a ‘boolean’ value, it can be eith… just kidding! I know that you know what a boolean value is.<br />

Feel free to use the Input::get() method whenever you need to set your mind at ease.<br />

Pfff…<br />

Still not happy? Well aren’t you a fussy one! Oh right, you don’t want a single value, or an array of<br />

all values? Ah I see, you must want to access a subset of the data then. Don’t worry buddy. Laravel<br />

has you covered.<br />

First, let’s take a look at the Input::only() method. It does exactly what it says on the… tin?<br />

Here’s an example.<br />

1

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

Saved successfully!

Ooh no, something went wrong!