Please enable JS

Overview

Laravel API 101: AUTH

  0 reviews
19.99 25.00
sale

Now that we have built our API in the previous lesson, we need a way to protect it, so that only authenticated users can use it. We will do that by using Token Based Authentication that comes with Laravel by default.

Laravel comes with built-in token-based authentication, but the documentation on it is almost nonexisting. After I complete this lesson, I will write the documentation for it and send a PR to Laravel so that it gets included in the official documentation.

Using a native authentication system is pretty handy because you don't have to deal with integrating it with your framework, it just works.

In short, we will give each user a token, with which he can access the API and protect the routes that we want to require authentication. I will also show you three different ways of sending the token to the API for authentication.

SAMPLE

SKU: laravel-api-101-auth
Author Mario Bašić
Words 1,813
Published At May 23, 2016
Last Updated October 06, 2017

No reviews yet.

Related Tutorials

Multilingual Web Application with Laravel: Authentication and Authorization

Laravel makes implementing authentication very simple. We will implement authentication in our existing application.

9.00

Multilingual Web Application with Laravel: Multilingual CRUD

In this tutorial, we will cover creating, updating, deleting and viewing all multilingual articles.

9.00

Laravel API 101: TEST

Laravel comes out-of-the-box with great testing suite built on PHPUnit. No API should be left untested.

25.00  19.99

Laravel API 101: CONSUME

We will create a new Laravel application which connects to the API that we have built in the previous lessons.

25.00  19.99

JSON Web Token Authentication for Lumen REBOOT

Learn how to implement JWT authentication in your Lumen application the proper way.

25.00  19.99

Laravel Forms & HTML

Everything you need to know about working with forms in Laravel. Based on Laravel Collective Forms & HTML package.

7.00
Instant Delivery
24/7 Customer Service
Payment Options
7 Days Refunds
Laravel
PHP
React.js
Vue.js
Composer
Nginx
Ubuntu
Linux
Windows
Codeception
MySQL
Lumen

Newsletter