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.

API authentication<br />

We added the auth middleware to our /api/user/toggle_saved route to protect it from<br />

guest users. We also specified the api guard for this middleware, that is, auth:api.<br />

Guards define how users are authenticated <strong>and</strong> are configured in the following<br />

file.<br />

config/auth.php:

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

Saved successfully!

Ooh no, something went wrong!