Laravel API Crash Course With Sanctum | Laravel Sanctum Full Tutorial | How to Build Laravel API

preview_player
Показать описание
This video will show you how Laravel Sanctum works! Laravel Sanctum is a very powerful authentication system for SPAs, mobile applications and simple API tokens - Want to learn the most popular PHP framework? Laravel makes your development process a lot easier without sacrificing your application's functionalities.

📚 New Udemy Course

📲 Let’s plan a meeting

💌 Newsletter

🔥 Resources

🔗 Useful links

📋 Table of Content
00:00 - Introduction
03:04 - Setup & Installing Sanctum
06:55 - API Response Trait
11:47 - Postman Setup
16:07 - Routing
24:43 - Register functionality
34:15 - Login functionality
40:10 - Protecting Routes
45:57 - Task migration, model and factory
52:12 - Tasks functionalities
01:14:22 - Logout functionality / Revoking tokens

#laravel #framework #php #laravel9 #laravelsanctum #sanctum
Рекомендации по теме
Комментарии
Автор

When declaring resource routes that will be consumed by APIs, you will commonly want to exclude routes that present HTML templates such as create and edit. For convenience, you may use the apiResource method to automatically exclude these two routes. Like this: Route::apiResource('tasks', TasksController::class);

AstreonOfficial
Автор

Man, you have a real talent for explaining complex topics so that they seem very simple

sv
Автор

Your tutorials are way more transparent than the videos on Laracast

Quota-
Автор

This crash course not only explained the basics of using Sanctum but also included a ton of valuable information about configuring APIs, using ResourceControllers, implementing custom requests, and so much more. Very well done!

joshmakar
Автор

I love your tutorials; clear and in-depth. This is the latest and the best. Many thanks.

meetwithchuks
Автор

Before I even finish this video let me say that your are an amazing professor. That tutorial is so fluent, explaining patiently concepts I was hardly trying to understand. Thank you very much from Burkina Faso.

jackreacher
Автор

you are a lifesavour . I loved you content when I was still learning a year ago and I am even more thankful that you posted this video now that I got a job and I am asked to make an API. your methods are light years ahead of my put together garbage API . thank you good sir

AbderrahmanFodili
Автор

Best Laravel video with great explanations I have seen on YouTube.. Thank you sooo much for this video

madie
Автор

Very well explained with details, common mistakes and coding things step by step so we are not saturated. One of the best teacher i've watched so far. Thanks a lot for this tutorial

knockedbull
Автор

What!! I have successfully gone through this entire tutorial. Was very helpful.

MrWorkman
Автор

thank you so much man, I've been working as a full-stack developer for a long time, and i didn't know some of that stuffs in laravel. push forward bro. greate video!

sb-dor
Автор

It was very very useful. Thanks a lot to Mr. dary ❤for creating tutorial contents. Your tutorials are the best! I'm from iran country. I like next tutorial was be about the role based API and custom middleware. I look forward to your next tutorials.

mohammadhosseinmoradi
Автор

Awesome video thanks 👍
Please add more videos about API other methods like email confirmation, password reset, OTP confirmation for mobile .... Thanks again for the tutorial

belaouraabdelwahab
Автор

Great video! Thanks 👊
When validating a form request you actually don't need to call request->all() inside the validated() method. It doesn't need it. The validated method returns an array with the validated fields.

PacificDev
Автор

Fantastic Tutorial Dary. I am a newbie to laravel and your videos are just fantastic. Thank you

HarshSharma-xpuf
Автор

Hi Dary, very good video. Just one small suggestion: pause for a second or two before you switch screen or program, so that your viewers get a chance to pause. Also, there is a small problem with the cli when the screen is paused, as YT's control overlaps on the last line, which happens to be what you are typing. So maybe using a ssh client to connect locally?

pvjnczl
Автор

If there is anything that i want to complain about in this tutorial, you need to show us every namespace that you used inside your controller. not all of us who are trying to learn laravel knows how to automatically add them whenever you used a class that isnt inside of the controller originally. It confused the heck out of me. 6/10. man do what i just said and it will be instant 9/10. cuz its such bummer to suddenly getting an error when i literally do everything you did step by step.

LuiBorosu
Автор

Wow, wonderful tutorial, Dary. Thank you so much.

EddieMao
Автор

tysm, you are so good at explaining subjects like this, appreciate your efforts, <3

feedgaming
Автор

It was a good-quality video. Thanks a lot, Dary!

zoltanfodor