Laravel 8 REST API With Sanctum Authentication - Best Webhosting

Thanks! Share it with your friends!

URL

You disliked this video. Thanks for the feedback!

Sorry, only registred users can create playlists.

ULTRAFAST, CHEAP, SCALABLE AND RELIABLE! WE STRONGLY RECOMMEND ACCU WEB HOSTING COMPANY

Laravel 8 REST API With Sanctum Authentication

Watch Web Development Traversy Media Video: 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.

Code:
https://github.com/bradtraversy/laravel-sanctum-api

Laravel Sanctum Docs:
https://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

Published:
Category: Web Development Traversy Media
16 Views

Related Videos

  • LoopBack REST API with Authentication

    LoopBack REST API with Authentication

    by Best Webhosting Added 99 Views / 0 Likes

    In this video we will explore the LoopBackJS API framework for Node.js. We will create a REST API with user authentication endpoints. We will be installing the MongoDB connector as well. OFFICIAL SITE & DOCS: https://loopback.io/ COMMANDS: http://www.traversymedia.com/downloads/loopbackcommands.txt BECOME A PATRON: Show support & get perks! http://www.patreon.com/traversymedia ONE TIME DONATIONS: http://www.paypal.me/traversymedia FOLLOW TRAVERSY MEDI

  • Laravel From Scratch [Part 9] - User Authentication

    Laravel From Scratch [Part 9] - User Authentication

    by Best Webhosting Added 95 Views / 0 Likes

    In this video we will add user authentication. We also need to add a user_id column in the posts table in the database. We will implement full login and register functionality CODE: Complete Code For This Series https://github.com/bradtraversy/lsapp 10 PROJECT LARAVEL COURSE: Please use affiliate link below https://www.eduonix.com/affiliates/id/16-10485 50% OFF: Use special code "traversy" SUPPORT: We spend massive amounts of time creating these free

  • Laravel From Scratch [Part 2] - Environment Setup & Laravel Installation

    Laravel From Scratch [Part 2] - Environment Setup & Laravel Installation

    by Best Webhosting Added 94 Views / 0 Likes

    In this video we will setup our environment. We will be using XAMPP which gives us an Apache server with PHP and MySQL. We will install Laravel with Composer and we will be using the Git Bash terminal and integrate it with Visual Studio Code CODE: Complete Code For This Series https://github.com/bradtraversy/lsapp XAMPP SETUP: https://www.youtube.com/watch?v=6tCWiexc05U 10 PROJECT LARAVEL COURSE: Please use affiliate link below https://www.eduonix.com

  • Laravel Crash Course 2020

    Laravel Crash Course 2020

    by Best Webhosting Added 32 Views / 0 Likes

    This is a Laravel crash course that covers installation, authentication, routes, data, pagination, email functionality and much more - Visit Codecourse for more videos & courses by Alex: https://codecourse.com - YouTube Channel: https://www.youtube.com/channel/UCpOIUW62tnJTtpWFABxWZ8g - Code: https://github.com/codecourse/posty-traversy-media - Social Links: https://twitter.com/teamcodecourse https://twitter.com/alexjgarrett - Links mentioned in cours

  • Full Stack Vue.js & Laravel

    Full Stack Vue.js & Laravel

    by Best Webhosting Added 89 Views / 0 Likes

    In this video we will build a Vue.js frontend to the Laravel 5.5 API that we created in the video below. It will be a full CRUD app with pagination and a Bootstrap 4 UI. LARAVEL API VIDEO: Video to build the backend to this app https://www.youtube.com/watch?v=4pc6cgisbKE&t=2314s LARAVEL API ONLY GITHUB: Starting point https://github.com/bradtraversy/larticles_api FULL APP GITHUB: https://github.com/bradtraversy/larticles_vue_app • BECOME A PATRON: Sho

  • Laravel 5.5 API From Scratch Using Resources

    Laravel 5.5 API From Scratch Using Resources

    by Best Webhosting Added 77 Views / 0 Likes

    In this video we will be building an API from scratch using Laravel 5.5 API resources. We will create an article model and use seeds and factories to create dummy data and then build the api endpoints with a resource CODE: Code for this video https://github.com/bradtraversy/larticles_api BUILD A VUE.JS FRONTEND: https://www.youtube.com/watch?v=DJ6PD_jBtU0 • BECOME A PATRON: Show support & get perks! http://www.patreon.com/traversymedia VISIT MY WEBIST

  • Golang REST API With Mux

    Golang REST API With Mux

    by Best Webhosting Added 73 Views / 0 Likes

    In this video we will look at building a simple REST API using the Go programming language along with the Mux router. I will also explain some of the fundamentals of the language for beginners. SPONSOR: GDP HOST - WANT CHEAP WEB HOSTING? https://goo.gl/iZjcGk CODE: Github Repo https://github.com/bradtraversy/go_restapi BECOME A PATRON: Show support & get perks! http://www.patreon.com/traversymedia ONE TIME DONATIONS: http://www.paypal.me/traversymedia

  • Install Laravel 5 on XAMPP in Windows 8

    Install Laravel 5 on XAMPP in Windows 8

    by Best Webhosting Added 95 Views / 0 Likes

    Here we will install Laravel 5 and configure a virtual host in XAMPP.

  • Laravel From Scratch 2022 | 4+ Hour Course

    Laravel From Scratch 2022 | 4+ Hour Course

    by Best Webhosting Added 15 Views / 0 Likes

    Learn the Laravel PHP framework from scratch by building a job listings application with Laravel 9 and MySQL. ⭐ Sponsor: https://linode.com/traversy 💻 Github Repo: https://github.com/bradtraversy/laragigs 💻 Gists: Laravel Valet Setup: https://gist.github.com/bradtraversy/b58f74cd863a465068eaeaae1544d9be Laravel Xampp Setup: https://gist.github.com/bradtraversy/7485f928e3e8f08ee6bccbe0a681a821 MySQL Cheat Sheet: https://gist.github.com/bradtraversy/c83

  • REST API With Flask & SQL Alchemy

    REST API With Flask & SQL Alchemy

    by Best Webhosting Added 76 Views / 0 Likes

    In this project we will use Python Flask along with SQL Alchemy and Marshmallow to create a RESTful API for products. Sponsor: Freelancer Bundle (Use "brad25" for 25% off) https://studywebdevelopment.com/freelancing.html Code: https://github.com/bradtraversy/flask_sqlalchemy_rest Flask From Scratch Series: https://www.youtube.com/watch?v=zRwy8gtgJ1A • Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Website & Udemy Cours

  • Popular Laravel From Scratch [Part 1] - Series Introduction

    Laravel From Scratch [Part 1] - Series Introduction

    by Best Webhosting Added 103 Views / 0 Likes

    In this video I will talk about what Laravel is and also give you a demo of what we will be building. Laravel is the most popular open source PHP framework and uses the MVC (Model View Controller) design pattern. We will be covering all of the fundamentals of Laravel 5.4 in this series including.... Routing Controllers Models & DB Migrations Blade Templates/Views Authentication & Access Control CRUD Functionality File Uploading Much More... CODE: Comp

  • Laravel From Scratch [Part 11] - Access Control

    Laravel From Scratch [Part 11] - Access Control

    by Best Webhosting Added 87 Views / 0 Likes

    In this video we will implement access control so guests can not add posts and users can only edit and delete their own posts. CODE: Complete Code For This Series https://github.com/bradtraversy/lsapp 10 PROJECT LARAVEL COURSE: Please use affiliate link below https://www.eduonix.com/affiliates/id/16-10485 50% OFF: Use special code "traversy" SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support: http:

RECOMMENDED WEB HOSTING

FASTCOMET

Fastcomet

HOSTGATOR

HOSTGATOR

BLUEHOST

BLUEHOST

SITEGROUND

SITEGROUND

A2 HOSTING

A2 HOSTING

HOSTINGER

HOSTINGER

DREAMHOST

DREAMHOST

ACCU WEBHOSTING

ACCU WEBHOSTING

MILESWEB

MILESWEB

HOSTPAPA

HOSTPAPA


RSS