Тёмный

Laravel 10 REST API development with JWT. Part Two: Registration and Login endpoint 

Wisdom Diala
Подписаться 1,2 тыс.
Просмотров 2,2 тыс.
50% 1

#laravel #php #laravel10 #laravelAPI #websitedevelopment #webdev #programming #javascript #html #coding
In this video, we continue our journey into Laravel 10 REST API development with JWT. In Part Two, we dive into the Registration and Login endpoints, learning how to securely register new users and authenticate existing ones. Join us as we explore the powerful features of Laravel and discover how to create a robust and secure Restful API. Don't forget to hit the like button if you find this video helpful!
Part One: • Laravel 10 REST API de...
Link to JWT Auth documentation: laravel-jwt-au...

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@Pagani0123
@Pagani0123 9 месяцев назад
Thank you, you helped me a lot. I'm brazilian, I don't speak english very well, but I understood your video. Thanks.
@wisdomdiala
@wisdomdiala 9 месяцев назад
Thanks for the feedback, you can also help by subscribing and liking the video.
@ameyoagbagba7023
@ameyoagbagba7023 7 месяцев назад
Thank you very much for these lessons... it would be great if you made a video on the logout method and how to consume this api via an angular front..Be blessed.Thanks
@rikudola-9458
@rikudola-9458 6 месяцев назад
Hi, i was wondering what vs code extension are you using that allows you to auto import modules, like here in 12:00.
@wisdomdiala
@wisdomdiala 4 месяца назад
You can use PHP companion extension
@m4rkbello
@m4rkbello 7 месяцев назад
Thankyou so much man!
@wisdomdiala
@wisdomdiala 7 месяцев назад
You're welcome
@gilbertorogel81
@gilbertorogel81 4 месяца назад
at 16:42 access_token is null, im using laravel 11.6.0, not sure why this line $token = auth()->login($user) says that login() returns void Any help apreciated
@wisdomdiala
@wisdomdiala 4 месяца назад
Can I see your code snipped?
@gilbertorogel81
@gilbertorogel81 4 месяца назад
@@wisdomdiala Tyvm for the reply, i fixed the issue by changing the defaults array in api/config/auth.php: 'defaults' => [ 'guard' => 'api', 'passwords' => 'users', ]
@gilbertorogel81
@gilbertorogel81 4 месяца назад
at 10:40 i get response 419 unknown status : "message": "CSRF token mismatch.", help pls
@gilbertorogel81
@gilbertorogel81 4 месяца назад
fixed it by adding the route to $except array in VerifyCsrfToken.php :D in laravel framework 11.6.0 the VerifyCsrfToken.php file is in the route-> vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/
@wisdomdiala
@wisdomdiala 4 месяца назад
Did you include the api prefix to your endpoint?
@gilbertorogel81
@gilbertorogel81 4 месяца назад
@@wisdomdiala I dont remember what was the issue but i've fixed it, thank you for replying tho :)
@puto8736
@puto8736 8 месяцев назад
Hi I was wondering why you didn't include the expires_in for jwt? I was looking for some answers how to change the jwt token expiry and got landed on your content. I followed the instructions based on the docs including yours but In laravel 10, the factory method is undefined. Any thoughts about it?
@wisdomdiala
@wisdomdiala 8 месяцев назад
You don't necessarily need to use the factory method, you can define your own expiry time without the factory. I didn't include the expire_at, cuz I want to treat the subject separately.
Далее
КОГДА НАКРОШИЛ НА ПОЛ #shorts
00:19
Laravel 8 REST API With Sanctum Authentication
54:13
Просмотров 547 тыс.
Laravel Sanctum and Postman
13:54
Просмотров 11 тыс.
Laravel vs Rails for Javascript developers
19:50
Просмотров 3,8 тыс.
Laravel 11 API in 13 minutes | Sanctum
13:49
Просмотров 19 тыс.
Don't Use Websockets (Until You Try This…)
6:46
Просмотров 305 тыс.
05 - Token-based Authentication
12:52
Просмотров 26 тыс.