best and easy tutorial for Laravel Sanctum with Nuxt Auth. Salute Sir. easiest explanation.
@SandmanGeek4 жыл бұрын
Nicely explained Alex. A video on Laravel Sanctum with GraphQL would be a great help as there are not many tutorials/guides, specifically with GraphQL.
@xLastxTemplarx3 жыл бұрын
Regarding what you said at 7:42 , you still need to add an index.js file inside the store folder, otherwise vuex will not work and you will need to refresh your page after logging in for example in order to see the changes.
@cla18143 жыл бұрын
Thank you missed this step. No wonder why login was not working.
@oussamavive13 жыл бұрын
thank you very much Alex! i finally got the 'stateful' meaning and get it working properly!!!
@ColorFR3 жыл бұрын
i have this issue: '...CSRF token mismatch..." any idea? i pasted 1 day on this problem
@MuhammadKhalilZarpio3 жыл бұрын
Please make a video on nuxt auth configuration with Laravel passport, reading everywhere since yesterday but not in luck. Thank you 💕
@muhammadfadzilah93943 жыл бұрын
how to solve error with Session store not set on request. I using stateful sanctum
@jonice42292 жыл бұрын
can you make a tutorial how to deploy this?
@АнтонРевякин3 жыл бұрын
But how to register via auth-next???
@josuebarros-desenvolvedorw24903 жыл бұрын
how can I do a mult-auth??? different authentication for /admin and another for /user??? 2 separate dashboards, manipulating 2 separate user types (not role)
@rodrigoalejandrobravopina36242 жыл бұрын
THX BRO STILL WORKING
@Mahmudulhasan-ts5hm4 жыл бұрын
how to use SPA auth and TOKEN auth both together ?
@RamuRamu-eu2sx3 жыл бұрын
You did good tutorial on nuxt.js but registration and Login things makes us so difficult to understand can you add registration part on this
@ukandumichael77963 жыл бұрын
had no choice but to subscribe...great video..short and useful
@chineduchiaju25192 жыл бұрын
Hey please on deployment, what would be the SESSION_DOMAIN
@Shatic3 жыл бұрын
Thank you for this tutorial!
@OreefyOfficial3 жыл бұрын
Is it possible? Laravel as backend and NuxtJs as a frontend to host into the same domain.
@r3n7363 жыл бұрын
of course why not?
@Irsatechnologyco3 жыл бұрын
in LoginController Unhandled \Illuminate\Auth\AuthenticationException for throw new AuthorizationException
@JesusGil90 Жыл бұрын
It would be great if you can continue with Two Factor Authentication 😁
@iffar18303 жыл бұрын
Why didn't you get the CORS issue when you requested /login endpoint even if you did not exclude that endpoint in config/cors.php ?
@AhmadZaki953 жыл бұрын
'/user' already return unauthentication !!!!
@КириллБелоусов-ы5е3 жыл бұрын
in which folder is the admin panel created? in client project or inside laravel project?
@gurmukhsingh-uh5qo2 жыл бұрын
thank you for this video, was facing an issue with env var
@Insidious183 жыл бұрын
Nice! Any idea how I can add Google signin to work with this setup?
@eslamabdallahabass56622 жыл бұрын
This doesn't work with nuxt3
@pablodiazmateus22633 жыл бұрын
Hi Alex hope you are doing great. I'm having an issue deploying the Nuxt js + Laravel application. I have 2 index files ... of course I can't have them both ... The nuxtjs makes a index.html with all the app and the Laravel makes a index.php. So the issue is that if I left the nuxtjs one ... I can't access to Laravel Telescope/Horizon, and if I remove the index.html I can't access the Front-end I made with Nuxtjs. Any ideas - videos - recommendations about it ? Thanks in advance for your time !
@Mahmudulhasan-ts5hm3 жыл бұрын
show to add register in this process?
@ezekielwachira16913 жыл бұрын
I was wondering on that but registering a user does not use nuxt auth with sactum, you have to manually do that, send an API request to a register route in your laravel project but you will encounter CORS issues when doing that, to remove the CORS issues, first you have to make a request to Sanctum CORS then make your register request to the server.
@jorgeluisborges81663 жыл бұрын
theme vscode?
@JenuelDevTutors3 жыл бұрын
is their a video about registering a new user?
@ezekielwachira16913 жыл бұрын
I was wondering on that but registering a user does not use nuxt auth with sactum, you have to manually do that, send an API request to a register route in your laravel project but you will encounter CORS issues when doing that, to remove the CORS issues, first you have to make a request to Sanctum CORS then make your register request to the server.
@JenuelDevTutors3 жыл бұрын
@@ezekielwachira1691 oh yeah,, I actually figured it out, I create an API for my register function. Thanks :)
@ezekielwachira16914 жыл бұрын
CORS issues happening
@chronyan4 жыл бұрын
github.com/nuxt-community/proxy-module
@douglasokonu26533 жыл бұрын
I had the same problem and changed the paths on the config file: cors.php : 'paths' => ['api/*', '/sanctum/*'], then cleared cache with (important!): php artisan config:cache laravel doesn't load the cors.php config file edits until you clear the cache hence the cors error
@ezekielwachira16913 жыл бұрын
@@douglasokonu2653 I solved it using proxy module 🤞
@alexnewman78533 жыл бұрын
i have a problem with CORS on localhost. What to do?
@douglasokonu26533 жыл бұрын
I had the same problem and changed the paths on the config file: cors.php : 'paths' => ['api/*', '/sanctum/*'], then cleared cache with (important!): php artisan config:gache
@ivogacina47403 жыл бұрын
you did not provide middleware:['auth'] in nuxt.config , means your routes are not procteded on client side , you can acess any route without being logged in.If you add that , like docs says , than refreshing the page always redirects you to login even if you are already logged in.This is broken lib completely, just look at git issues
@KAZUxVIEW3 жыл бұрын
Thanks a lot !
@siyabdev3 жыл бұрын
You're a GEM
@felipefl2004 жыл бұрын
Awesome and helpfull
@ViralTVAbyzer4 жыл бұрын
great videos
@yonghunchoi89443 жыл бұрын
great !!!
@benyaminrmb3 жыл бұрын
thanks . can u help me out when i get this error No 'Access-Control-Allow-Origin'
@douglasokonu26533 жыл бұрын
I had the same problem and changed the paths on the config file: cors.php : 'paths' => ['api/*', '/sanctum/*'], then cleared cache with (important!): php artisan config:gache then it worked
@omareliotorrescastillo480810 ай бұрын
@@douglasokonu2653 this solution does not work
@SohailKhan-94224 жыл бұрын
Hi bro first comment
@jonahmarsden3 жыл бұрын
CORS errors everywhere. Tutorial is completely useless now, don't waste your time.
@jaspercaelan49983 жыл бұрын
Same, doesn't work.
@JesusGil90 Жыл бұрын
@masaakiuechi6190 Жыл бұрын
If you are having 401 unauthorized error after loggin, fix SANCTUM_STATEFUL_DOMAINS on .env file to " SANCTUM_STATEFUL_DOMAIN". It worked for me...