sir, thanks for tutorial, finally i got what i wanted, but i have a question, because of going an extra query for csrf-cookie the queries are taking a litle bit more time, could you show please something maybe like cache or something else to not do extra query on every query fo csrf-cookie, as i know csrf-cookie is active for two hours, thanks
My apologies for the confusion. You only need to make the csrf-cookie request once when you are authenticating the user. Once the user has been successfully authenticated, subsequent requests should automatically receive CSRF protection. So, there’s no need to make the csrf-cookie request after logging in the user
sir, thanks for tutorial, finally i got what i wanted, but i have a question, because of going an extra query for csrf-cookie the queries are taking a litle bit more time, could you show please something maybe like cache or something else to not do extra query on every query fo csrf-cookie, as i know csrf-cookie is active for two hours, thanks
My apologies for the confusion. You only need to make the csrf-cookie request once when you are authenticating the user. Once the user has been successfully authenticated, subsequent requests should automatically receive CSRF protection. So, there’s no need to make the csrf-cookie request after logging in the user
hey if you have a free time can you please to make a full laravle api that has auth + roles and permitions
That's a great idea! I'll add it to my list. Thank you for the suggestion. 👍