25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

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

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

Routes<br />

Currently, the home route, that is, /, loads our frontend app. But what we've built<br />

for our frontend app so far is not meant to be a home page! We'll be building that<br />

in future chapters.<br />

What we've built is the listing page, which should be at a route like /listing/5,<br />

where 5 is the ID of the mock data listing being used.<br />

Page<br />

Home page /<br />

Listing page<br />

Route<br />

/listing/{listing}<br />

Let's modify the route to reflect this.<br />

routes/web.php:

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

Saved successfully!

Ooh no, something went wrong!