
Channel: Traversy Media
Category: Science & Technology
Tags: laravellaravel rest apirest apilaravel jwtlaravel sanctumlaravel 8laravel authentication
Description: Beginner-friendly REST API from scratch using Laravel 8. We will implement authentication using API keys with Laravel Sanctum. Code: github.com/bradtraversy/laravel-sanctum-api Laravel Sanctum Docs: laravel.com/docs/8.x/sanctum Timestamps: 0:00 - Intro 1:46 - Set Up Laravel 3:23 - SQLite Setup 4:15 - Basic Routing 6: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









![video thumbnail for: LEGO Desert Eagle - Blaze [Kit For Sale] - Read Description](https://i.ytimg.com/vi/xUA6PKHv3Nw/mqdefault.jpg)

![video thumbnail for: From 0 To 100k Subscribers In 1 Video + Playbutton UNBOXING [100K SUB-SPECIAL]](https://i.ytimg.com/vi/gd8U-ZdEz40/mqdefault.jpg)



![video thumbnail for: LEGO Desert Eagle - Blaze [Blowback Rubberband Gun]](https://i.ytimg.com/vi/lGkg1w326Lk/mqdefault.jpg)

![video thumbnail for: Working LEGO M416 Tutorial [Part 2]](https://i.ytimg.com/vi/hdPCssLLDJ8/mqdefault.jpg)

![video thumbnail for: Working LEGO M416 + Tutorial [PART 1]](https://i.ytimg.com/vi/Q68gCjAz5yo/mqdefault.jpg)