Member Since 8 Months Ago
4,820 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Earned once your experience points ranks in the top 10 of all Laracasts users.
Replied to Adding Guest Data Into Cart [JWT REST API]
But my question is exactly this: How to associate the guest user to the cart so later on, he can be turned into an authenticated customer?
Started a new Conversation Adding Guest Data Into Cart [JWT REST API]
I am developing an eCommerce application rest API. This API will be consumed by mobile developers to build an e-commerce app.
I am facing an issue regarding the shopping cart, A user without being logged-in can add the data to the cart and the data will be stored in a database table named cart. Cart table has product, quantity, guest_id (For guest id), user_id(For authenticated user id) columns.
If logged-in user adds a product to the cart, his ID with cart data will be inserted in the table. But what about guest_id, How I can generate guest id, and where I can store it so it will remain the same and I will be able to access the guest cart data on the cart page?
Note: I am using JWT for authorization/authentication purpose and using core php.
Started a new Conversation Route Model Binding [Internal 500 Server Error]
Currently, I am handling exception in the handler.php file. The issue arises when I add a nonexistent id like (article/200) to the URL.
I was expecting that this error will be a NotModelFoundException, So I handled it in my render function. Even in case, the class of the resulting error is different than NotModelFoundException, I handled that in else condition.
But when I try to run that API URL in postman, I only receive 500 internal server errors without any response data.
Please let me know what could be the problem. Thanks
P.S: I am using route model binding to show specific resource data.