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!
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 🙏🙏
@@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.
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
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.
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;
@@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.
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!
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 🙏🙏
@@programmingfields thanks a lot
Super brother keep going continue same
Thank you so much.
well explained! Thanks
Just subscribed now.congratulation you have got a new subscriber sirr
Very clear explanation! Thank you!
You're welcome 😊
awesome, i will watch this a few times, this is good stuff
Glad to hear.
very helpful! thanks! can you provide some details on how to change response of validation errors?
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.
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 TH-cam.Thank you
Sure, I have noted your suggestion. I will make this very soon.
Thank You
If I lose my token from the browser's local storage, how can I log out myself?
@@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.
You are learning and talking about Rest API but Why Your Video title RestFul APi?
very nice
Laravel world🔥🔥🔥
☺️☺️
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
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.
@@programmingfields Thank you
Good Laravel api
Thank you 😊
I think I missed something, I tried to code along and it says createToken is undefined.
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;
You can refer to 36:08
I like your video but if your language will hind then its easy to understand me.
Can you help me?
@@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.