🔥🤩 Step-by-Step Laravel 10 REST API Using Passport Authentication | Laravel API Development Tutorial

preview_player
Показать описание
🔥🤩 Step-by-Step Laravel 10 REST API Using Passport Authentication | Laravel API Development Tutorial
#onlinewebtutor #skillshike #laravel #laraveldevelopment #webdevelopment #phpframework

►TimeStamps:
00:00 – Introduction to this one video course
02:22 – Laravel Setup Installation
05:53 - Database Connectivity
07:17 - API Controller & Method Settings
12:27 - About Passport Package Installation and Settings
22:37 - Setup API Routes
27:24 - Register API
35:34 - Login API
42:27 - Profile API
46:20 - Logout API

►What is Passport Authentication in Laravel?
Passport is an official Laravel package that provides a full OAuth2 server implementation for your Laravel applications. It allows you to easily add secure, token-based authentication to your APIs and web applications. Passport simplifies the implementation of authentication and provides a variety of OAuth2 grant types, including Authorization Code, Implicit, Password Grant, Client Credentials, and Personal Access Tokens.

►Social Community

►Tags:
Laravel 10 APIs Development,
Laravel 10 RESTful APIs Development,
Laravel APIs Development with Passport,
Laravel REST APIs development using Passport Package,
Step-by-Step Laravel 10 APIs Development Tutorial,
RESTful APIs Development Using Laravel 10 and Passport Authentication,
What is Passport Authentication in Laravel,
How To Create APIs in Laravel with Passport Authentication,
What is Laravel Passport Authentication,
Online Web Tutor,

Thanks
Online Web Tutor
Keep learning and Sharing :)
Рекомендации по теме
Комментарии
Автор

The best video for passport authentication, taught in the best manner! Thanks alot

taimoorfarid
Автор

thank you very much sir, this tutor is verry good 🤩🤩🤩🤩🤩

S--vn
Автор

Hi, this looks very good and useful. I've got all this working but I couldn't make my MustVerifyEmail work. Are you able to setup the verify email and the password reset functions on this app? Thank you.

dgloria
Автор

Hello, thank you very much, you really helped me understand how to use Passport. But why is there an error in
$token = auth()->user()->token();
I understand that it still works correctly, but I want to know if you know the reason.

johanortega
Автор

Dear sir can you create a video how to host laravel website on server. What kind server need for laravel project with video play that website and how to install package of composer on server. In YouTube dont have video step by step. What is best webhost site and plan for laravel project with user upload video and that video play on server.

vinodverma
Автор

I cant log out

public function logout()
{
$user = auth()->user();

if ($user) {
$user->token()->revoke();

return response()->json([
'status' => 200,
'message' => 'User logged out',
]);
}

return response()->json([
'status' => 401,
'message' => 'User not authenticated',
]);
}

It give me 401 code, i can login and copy the token.

einnlleinhatt_
Автор

Thank you for this video, everything is working but when I don't provide a token to fetch user profile, I don't get Unauthenticated message, instead I get missing login route. Any idea how to fix this? Note: I am using laravel 11

desmondawere
Автор

i have a problem with Route [login] not defined. in file on line 479, how can I fix, when I tried to visit profile

mgaqusai
Автор

How can create employee table api using passport not default users table

smitnayak