watch on aatventure.news

Laravel 8 REST API With Sanctum Authentication

Beginner-friendly REST API from scratch using Laravel 8. We will implement authentication using API keys with Laravel Sanctum.

2021-03-31 19:00:00 - Traversy Media

TIMESTAMPS:

00:00 - Intro

01:46 - Set Up Laravel

03:23 - SQLite Setup

04:15 - Basic Routing

06:38 - Product Model & Migration

10:56 - Using the Model

14:39 - Product Controller & Methods

17:30 - Create Products & Validation

21:53 - Single Product & Resource Routes

24:05 - Update Product

25:32 - Delete Product

26:54 - Search Products

29:48 - Sanctum Setup

33:22 - Protecting Routes

38:38 - Auth Controller

39:05 - Register User & Get Token

45:30 - Logout & Delete Token

48:00 - Login User & Get Token

More Posts