11.08.2017 Views

codebright

Create successful ePaper yourself

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

URL Generation 119<br />

1 http://myapp.dev/example<br />

…Laravel will fill in the blanks in the correct order, with the parameters we have provided. The<br />

following URL is displayed a response.<br />

1 http://myapp.dev/the/best/avenger/ever<br />

There’s one final routing method of this type that you need to know, and that’s how to route to<br />

controller actions. In fact, this one should be pretty simple, since it follows the same pattern as the<br />

URL::route() method. Let’s take a look at an example.<br />

1

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

Saved successfully!

Ooh no, something went wrong!