25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

Create successful ePaper yourself

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

Summary<br />

In this chapter, we learned about authentication in full-stack <strong>Vue</strong>/<strong>Laravel</strong> apps,<br />

including session-based authentication for web routes, <strong>and</strong> token-based<br />

authentication for API routes using <strong>Laravel</strong> Passport.<br />

We used this knowledge to set up a login system for <strong>Vue</strong>bnb, <strong>and</strong> to allow saved<br />

room listings to be persisted to the database.<br />

Along the way, we also learned how to utilize CSRF tokens for securing forms,<br />

<strong>and</strong> about <strong>Vue</strong>x actions for adding asynchronous code to the store.<br />

In the next, <strong>and</strong> final, chapter, we will learn how to deploy a full-stack <strong>Vue</strong> <strong>and</strong><br />

<strong>Laravel</strong> app to production by deploying <strong>Vue</strong>bnb to a free Heroku PHP server. We<br />

will also begin serving images <strong>and</strong> other static content from a free CDN.

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

Saved successfully!

Ooh no, something went wrong!