Master Laravel 11: Create RESTful APIs for User Management with Sanctum | Token Based API

  Рет қаралды 4,980

Programming Fields

Programming Fields

Күн бұрын

Пікірлер: 31
@mejiger
@mejiger 6 күн бұрын
well explained! Thanks
@subhendubaral
@subhendubaral 18 күн бұрын
Thank You
@ThirunavukkarasuG-i5b
@ThirunavukkarasuG-i5b 4 күн бұрын
Super brother keep going continue same
@programmingfields
@programmingfields 3 күн бұрын
Thank you so much.
@wisdomBytes2024
@wisdomBytes2024 28 күн бұрын
very nice
@yakkaya
@yakkaya 4 ай бұрын
Thank you for your clear and explanatory narration. I am looking forward to your new videos on topics like processing XML structures, passport api , Guzzle with api process, Websockets, Redis, and Elasticsearch in Laravel. Thank you a lot!
@programmingfields
@programmingfields 4 ай бұрын
Thank you for your valuable feedback and suggestions. I appreciate your valuable time. I will definitely bring videos for all of these suggestions. Please keep connected 🙏🙏
@yakkaya
@yakkaya 4 ай бұрын
@@programmingfields thanks a lot
@GianGamingMLBB
@GianGamingMLBB 4 ай бұрын
Very clear explanation! Thank you!
@programmingfields
@programmingfields 4 ай бұрын
You're welcome 😊
@babar178
@babar178 4 ай бұрын
Just subscribed now.congratulation you have got a new subscriber sirr
@sajjadhossainshuvo6975
@sajjadhossainshuvo6975 Ай бұрын
If I lose my token from the browser's local storage, how can I log out myself?
@programmingfields
@programmingfields 29 күн бұрын
@@sajjadhossainshuvo6975 If you have stored token in the local storage and somehow it is removed from local storage then you will have to invalidate that API token from server side. So you can revoke the token access. You will have the logout API. So simply trigger that it will revoke the previous token access from the backend and it will redirect you to the login page. So that you can regenerate a fresh token.
@rohan-d2e
@rohan-d2e 2 ай бұрын
very helpful! thanks! can you provide some details on how to change response of validation errors?
@programmingfields
@programmingfields 26 күн бұрын
Yes, you can define an array of the validation error messages and according to the validation rules, you can set the custom validation error message.
@373323
@373323 2 ай бұрын
awesome, i will watch this a few times, this is good stuff
@programmingfields
@programmingfields 2 ай бұрын
Glad to hear.
@babar178
@babar178 4 ай бұрын
Wow nice . please can you make video on Laravel Reverb with blade.its very important and we did not find this topic with blade on KZbin.Thank you
@programmingfields
@programmingfields 4 ай бұрын
Sure, I have noted your suggestion. I will make this very soon.
@umeshmalisetty6591
@umeshmalisetty6591 4 ай бұрын
I will explain my problem in production Can you give suggestions on that… When I am inserting bulk data in local for one lakh json data it will take 7 seconds but same thing I did in production 10k also taking 2 min I am using sanctum, cors, redis,queues and chunks for insertion
@programmingfields
@programmingfields 4 ай бұрын
There may be various factors in comparison to local and production server. You can try the below steps- 1. Check Server Resources: - Ensure your production server has enough CPU, RAM, and I/O capacity. 2. Optimize Database Config: - Increase buffer pool size. - Use connection pooling. - Optimize write-ahead logging.
@umeshmalisetty6591
@umeshmalisetty6591 4 ай бұрын
@@programmingfields Thank you
@abrarhasan7177
@abrarhasan7177 Ай бұрын
I like your video but if your language will hind then its easy to understand me. Can you help me?
@programmingfields
@programmingfields Ай бұрын
@@abrarhasan7177 That's fine, but I am not using very difficult word and sentence. That is very easy to understand. Please try learning english so it will help in your future growth.
@Mahisir2001
@Mahisir2001 4 ай бұрын
Laravel world🔥🔥🔥
@programmingfields
@programmingfields 4 ай бұрын
☺️☺️
@GameCrawl
@GameCrawl 4 ай бұрын
I think I missed something, I tried to code along and it says createToken is undefined.
@programmingfields
@programmingfields 4 ай бұрын
Did you try this line? // If credentials are incorrect if (!Auth::attempt(['email' => $request->email, 'password' => $request->password])) { return ResponseHelper::error(message: 'Unable to login due to invalid credentials.', statusCode: 400); } $user = Auth::user(); // Create API Token $token = $user->createToken('My API Token')->plainTextToken;
@programmingfields
@programmingfields 4 ай бұрын
You can refer to 36:08
@OngFamily-xi3nc
@OngFamily-xi3nc 4 ай бұрын
Good Laravel api
@programmingfields
@programmingfields 4 ай бұрын
Thank you 😊
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 37 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 31 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 105 МЛН
Laravel 8 REST API With Sanctum Authentication
54:13
Traversy Media
Рет қаралды 548 М.
Laravel SPA Authentication - setup and common mistakes
16:55
Laravel Sanctum SPA Auth Overview
13:34
cdruc
Рет қаралды 10 М.
419 CSRF Token Mismatch - Laravel Sanctum
5:45
cdruc
Рет қаралды 6 М.
Laravel 11 API in 13 minutes | Sanctum
13:49
WebDevWithArtisan
Рет қаралды 20 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 37 МЛН