Vue js SPA Laravel Authentication, Vue SPA save user and login user - laravel
HTML-код
- Опубликовано: 2 авг 2020
- In this tutorial we save new users and log users in, We will create a user dashboard and we also protect that route if the user is not logged in.
We use Vue SPA (Single PAge Application and Laravel Sanctum in this video. we do it with laravel built in vue js.
Github link: github.com/Norbertho/vue-spa-... - Наука
I simply love you, man. I have needed this for so much time, and then i came here. I didn't expect you were the one who achieve it, i had lost all hope.
Thanks, really.
Now I can continue learning.
From Fisher to Fisher - great tutorials! Thank you!
Fantastic teaching and content. You are the best, Sir Fisher
Very good tutorials, please upload more Laravel/Vue tuts! Thank you so much. Keep going dude! ;)
i was lookinng for about laravel 7, currently i didn't found something interesting, but u're amazing thanks for ur knowledge, i'm
subscribed now, i hope u continue with ur channel. Greeting from Colombia
I finished it! Thank you so much!
You ARE the man. Thanks a lot!
I love you man thanks for the tutorial and keep making videos
You helped a lot. Thank you.
Very usefull. Thanks a lot.
thankssssssssssssss bro, i was tired to search this , very very thanks sorry for my english , thanks from Colombia
Hey Fisher, I have a question, why you are pulling information from /user route. You need to put the sanctum middleware inside the login route. I put this inside the login but it say's unauthenticated
Laravel + Vue it's a cool combo
Thanks dude, Great Job
very helpful video
thank you
Amazing bro!! keep up
Thanks so much 💕
amazing💯
yeaaaa!!!!!!! ❤️❤️❤️❤️❤️❤️❤️❤️
Thank you
Thanks man!
Your welcome:)
Hi, thanks for the tutorial. You talked of adding other functionalities like categories and post to the tutorial. Please can you add that too. Thank you
Good job!!
@@CodeFisher Implementation of jwt token will be good boost for this course, can you implement this in further videos?
Good job my friend
Thanks a lot
can’t thank you enough....
Should SPA first make a request to the 「/sanctum/csrf-cookie」 route to initialize CSRF protection for the application in the case of that exist in the same repository as your Laravel application?
Please excuse my poor English.
Thanks for the video... please can you make the font size bigger in your next video
good vidéos !
nice
thanks
Hello, why when I login but api direct to api/athenticated ... It should be api/login ... This event after add guard before enter on routes..
Could I use same method for mobile app development( flutter or android )using laravel+ sanctum?
if i am logged in the get method for use (so the redirect to the dashboard page) says: "message":"Unauthenticated.". Any help with that? They recognize in the login page if the email/password is valid or not so the check there is good. When they find a user with the same email and password they redirect me to the dashboard page but the call gives me an Unauthenticated message
Implementation of jwt token will be good boost for this course, can you implement this in further videos?
@@CodeFisher Okej, I hope you will. 😀
How to implement log out function on the other component? Show logout button only when user is signed in?
could share a link on how to deploy please? on heroku or anywhere
is this login version for vue frontend or laravel backend?
Hello sir, this video is awesome but can you include more detail about how to install laravel with vuejs pls? because i want to learn from this video but i don't know how to install* . thanks
i want to back to the login page instead of home page after logout so what need to change in the code
can you make the navbar with home and about disappear when viewing the login page?
PLEASE UPLOAD MORE ..
hi, is this the same as laravel jetstream auth? which one should i use lol
is the SPA bad for the SEO ?
And one more thing i want to add a success notification after registration
I have the following Error: Redirected when going from "/ login" to "/ dashboard" via a navigation guard. i clone the repository and I get the same error
same problem, do u solved it yet?
Next please
Hello. How to change header after login and show logout instead of login & register? Thank you in advance.
This is not working. I have been clone you repository, then install composer packages, NPM packages. After that start the project by PHP artisan command "serve". Not working at this moment, when I try to authorize after registering my new user. What is wrong?
Sorry my english.
I rerun NPM command "run watch" and all working. Thanks.
Good Day my friend, I would like to ask why it is always Unauthenticated even though i type it correctely..
Please show us how to implement multiple authentication
at @20:25
I was having this error when I try to register a new user: "Target class [RegisterController] does not exist"
Solve: 1) in RegisterController.php => namespace App\Http\Controllers\Auth;
2) in api.php => Route::post('register', 'App\Http\Controllers\Auth\RegisterController@register');
There is a new array convention in routes web.php/api.php in Laravel 8. You can write routes like this:
use App\Http\Controllers\LoginController;
use App\Http\Controllers\RegisterController;
Route::post('register', [RegisterController::class, 'register']);
Route::post('login', [LoginController::class, 'login']);
You just solved my problem !! I got an internal server error due to the fact i didn't specified the complete path to the controllers... Thanks you for the sharing !!
i get eror in console, say "[Vue warn]: Error in render: "TypeError: Cannot read property 'name' of null" found in Dashboard.vue, when i change "user: null" to "user:[]" the eror its gone, its that right? i see you doesnt get eror. why?
User: ' '
User string not null
User ' '
User string not null
Please upload the CRUD
hello, help me please, i have error message : ''Unauthenticated" if call api/user
why you didn't use token ?
I saw a lot of vulnerabilities.
And
How to hide login & register option after login
Getting this error. Cloned from Git and still get this error: Uncaught (in promise) Error: Redirected when going from "/login" to "/dashboard" via a navigation guard.
When calling /api/user i get a 401 error,why?
Thanks for the tutorial, But I am getting unauthenticated error when running the project in live domain. It works fine in the local but on the production domain, the api "authenticated" is failed with response message unauthenticated
Hey man! Did you found a fix?
@@jaimyvangyseghem5328 not yet and have no idea why... are you also facing the same problem
@@DarisMathew7 yeah i am facing thé exact same issue 😕
Unauthenticated returning on valid cridentails
Next
Great tutorial man!
I just have problem at the very end of the video, when I try to login it throws me 401 {"message":"Unauthenticated."}
Same problem here
@@jlguillen Do you use Laravel 8?
Just follow the proper installation of sanctum. You can follow it on laravel documentation-sanctum.
same, do u solved it yet?
Did you solved this error. Am facing the same
Hello,
Thank you very much for this tutorial :)
I followed all steps of the video; I don't know why, when I am logged in, the data user is empty and in the console, I get the error 401 Unauthorized. So I cannot access to the name nor email of the user.
Please, need help. Thanks.
I apologize if my english is bad, I am a french speaker.
are you using laragon?
No I am not using Laragon.
@@PandaPendy Are you accessing your application via a URL that includes the port (ex 127.0.0.1:8080) ?
@@midasapa Im using laragon and I encounter this error, please help me to fix it
@@midasapa Im using laragon and I encounter this error, please help me to fix it
next tutorial provide
in laravel 8, i have /api/register 500
brother can u help me with dynamic menu with package
Like wordpress
Auth user admin role pless😂😂
You did not use Authentication, no token? Wasted my 35 minutes.