Vue js SPA Laravel Authentication, Vue SPA save user and login user - laravel

  Рет қаралды 44,049

Code Fisher

Code Fisher

Күн бұрын

Пікірлер: 98
@some666some
@some666some 2 жыл бұрын
From Fisher to Fisher - great tutorials! Thank you!
@victor_bagh
@victor_bagh 3 жыл бұрын
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.
@okyigwegbe1977
@okyigwegbe1977 3 жыл бұрын
Fantastic teaching and content. You are the best, Sir Fisher
@alexbeltran2753
@alexbeltran2753 4 жыл бұрын
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
@LaravelLover
@LaravelLover 3 жыл бұрын
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
@Gszada
@Gszada 3 жыл бұрын
Laravel + Vue it's a cool combo
@lupikas2008
@lupikas2008 3 жыл бұрын
Very good tutorials, please upload more Laravel/Vue tuts! Thank you so much. Keep going dude! ;)
@magicbeats330
@magicbeats330 2 жыл бұрын
thankssssssssssssss bro, i was tired to search this , very very thanks sorry for my english , thanks from Colombia
@shusantokumarmodak3710
@shusantokumarmodak3710 3 жыл бұрын
Very usefull. Thanks a lot.
@jacksonlongo1402
@jacksonlongo1402 3 жыл бұрын
I love you man thanks for the tutorial and keep making videos
@hiroakiyamamoto8192
@hiroakiyamamoto8192 4 жыл бұрын
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.
@johnuloko7842
@johnuloko7842 3 жыл бұрын
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
@maxunknown91
@maxunknown91 3 жыл бұрын
You ARE the man. Thanks a lot!
@ralphzac1023
@ralphzac1023 Жыл бұрын
Thanks man!
@CodeFisher
@CodeFisher Жыл бұрын
Your welcome:)
@jaimyvangyseghem5328
@jaimyvangyseghem5328 3 жыл бұрын
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
@ballpossession-fb
@ballpossession-fb 4 жыл бұрын
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..
@tepchiva8342
@tepchiva8342 3 жыл бұрын
Thanks so much 💕
@AhmedSalah-hk4il
@AhmedSalah-hk4il 3 жыл бұрын
Thanks dude, Great Job
@biswanathbanik
@biswanathbanik 4 жыл бұрын
very helpful video thank you
@khanhpd3129
@khanhpd3129 2 жыл бұрын
Thanks a lot
@Max95Cohen
@Max95Cohen 2 жыл бұрын
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.
@Max95Cohen
@Max95Cohen 2 жыл бұрын
I rerun NPM command "run watch" and all working. Thanks.
@PauloQueirozJS
@PauloQueirozJS 4 жыл бұрын
I finished it! Thank you so much!
@thesafaripictures3453
@thesafaripictures3453 3 жыл бұрын
amazing💯
@igorujevic5986
@igorujevic5986 3 жыл бұрын
You helped a lot. Thank you.
@luqmanhadi6490
@luqmanhadi6490 4 жыл бұрын
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');
@bomirhocode5442
@bomirhocode5442 4 жыл бұрын
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']);
@jubelix6609
@jubelix6609 4 жыл бұрын
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 !!
@Sub_Boi
@Sub_Boi 8 ай бұрын
Thank you
@KulkulOfficial
@KulkulOfficial 4 жыл бұрын
yeaaaa!!!!!!! ❤️❤️❤️❤️❤️❤️❤️❤️
@vasilijestosic8331
@vasilijestosic8331 4 жыл бұрын
Good job!!
@vasilijestosic8331
@vasilijestosic8331 4 жыл бұрын
@@CodeFisher Implementation of jwt token will be good boost for this course, can you implement this in further videos?
@dsdeg1
@dsdeg1 4 жыл бұрын
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
@rier24
@rier24 3 жыл бұрын
same problem, do u solved it yet?
@andrewaghoghovwia1948
@andrewaghoghovwia1948 4 жыл бұрын
Thanks for the video... please can you make the font size bigger in your next video
@JJ-ot3ps
@JJ-ot3ps 2 жыл бұрын
is this login version for vue frontend or laravel backend?
@yanasepaiyanasenpai7086
@yanasepaiyanasenpai7086 3 жыл бұрын
Good Day my friend, I would like to ask why it is always Unauthenticated even though i type it correctely..
@mentalismtrainer
@mentalismtrainer 3 жыл бұрын
Could I use same method for mobile app development( flutter or android )using laravel+ sanctum?
@yoskokleng3658
@yoskokleng3658 2 жыл бұрын
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
@vasilijestosic8331
@vasilijestosic8331 4 жыл бұрын
Implementation of jwt token will be good boost for this course, can you implement this in further videos?
@vasilijestosic8331
@vasilijestosic8331 4 жыл бұрын
@@CodeFisher Okej, I hope you will. 😀
@lupikas2008
@lupikas2008 3 жыл бұрын
How to implement log out function on the other component? Show logout button only when user is signed in?
@josuesin97
@josuesin97 4 жыл бұрын
Amazing bro!! keep up
@tetianakulieshova1479
@tetianakulieshova1479 3 жыл бұрын
Hello. How to change header after login and show logout instead of login & register? Thank you in advance.
@brianmoffatt6077
@brianmoffatt6077 2 жыл бұрын
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.
@krisnahendra6851
@krisnahendra6851 3 жыл бұрын
hello, help me please, i have error message : ''Unauthenticated" if call api/user
@wolfeer5365
@wolfeer5365 2 жыл бұрын
When calling /api/user i get a 401 error,why?
@zayedmohamed737
@zayedmohamed737 3 жыл бұрын
is the SPA bad for the SEO ?
@yazidthedev4281
@yazidthedev4281 3 жыл бұрын
good vidéos !
@biswanathbanik
@biswanathbanik 4 жыл бұрын
i want to back to the login page instead of home page after logout so what need to change in the code
@pticalarry8640
@pticalarry8640 3 жыл бұрын
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."}
@jlguillen
@jlguillen 3 жыл бұрын
Same problem here
@pticalarry8640
@pticalarry8640 3 жыл бұрын
@@jlguillen Do you use Laravel 8?
@melbienrigabitan9699
@melbienrigabitan9699 3 жыл бұрын
Just follow the proper installation of sanctum. You can follow it on laravel documentation-sanctum.
@rier24
@rier24 3 жыл бұрын
same, do u solved it yet?
@josephndai9563
@josephndai9563 3 жыл бұрын
Did you solved this error. Am facing the same
@KulkulOfficial
@KulkulOfficial 4 жыл бұрын
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?
@mdkholil8363
@mdkholil8363 4 жыл бұрын
User: ' ' User string not null
@mdkholil8363
@mdkholil8363 4 жыл бұрын
User ' ' User string not null
@samikemashiku5054
@samikemashiku5054 3 жыл бұрын
can you make the navbar with home and about disappear when viewing the login page?
@Delapena100
@Delapena100 3 жыл бұрын
could share a link on how to deploy please? on heroku or anywhere
@JJ-ot3ps
@JJ-ot3ps 2 жыл бұрын
hi, is this the same as laravel jetstream auth? which one should i use lol
@alila3883
@alila3883 3 жыл бұрын
nice
@DarisMathew7
@DarisMathew7 3 жыл бұрын
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
@jaimyvangyseghem5328
@jaimyvangyseghem5328 3 жыл бұрын
Hey man! Did you found a fix?
@DarisMathew7
@DarisMathew7 3 жыл бұрын
@@jaimyvangyseghem5328 not yet and have no idea why... are you also facing the same problem
@jaimyvangyseghem5328
@jaimyvangyseghem5328 3 жыл бұрын
@@DarisMathew7 yeah i am facing thé exact same issue 😕
@devaes
@devaes 3 жыл бұрын
why you didn't use token ?
@codebrain6637
@codebrain6637 4 жыл бұрын
Good job my friend
@harisridhar3798
@harisridhar3798 3 жыл бұрын
can’t thank you enough....
@pyongits
@pyongits 3 жыл бұрын
I saw a lot of vulnerabilities.
@tayyabshahzad9933
@tayyabshahzad9933 3 жыл бұрын
Unauthenticated returning on valid cridentails
@toannew
@toannew 3 жыл бұрын
thanks
@biswanathbanik
@biswanathbanik 4 жыл бұрын
And one more thing i want to add a success notification after registration
@PandaPendy
@PandaPendy 4 жыл бұрын
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.
@midasapa
@midasapa 4 жыл бұрын
are you using laragon?
@PandaPendy
@PandaPendy 4 жыл бұрын
No I am not using Laragon.
@hiroakiyamamoto8192
@hiroakiyamamoto8192 4 жыл бұрын
@@PandaPendy Are you accessing your application via a URL that includes the port (ex 127.0.0.1:8080) ?
@franzqty9059
@franzqty9059 3 жыл бұрын
@@midasapa Im using laragon and I encounter this error, please help me to fix it
@franzqty9059
@franzqty9059 3 жыл бұрын
@@midasapa Im using laragon and I encounter this error, please help me to fix it
@shawonhossain519
@shawonhossain519 4 жыл бұрын
Please show us how to implement multiple authentication
@prajwalrajbr9378
@prajwalrajbr9378 4 жыл бұрын
Please upload the CRUD
@mdkholil8363
@mdkholil8363 4 жыл бұрын
And How to hide login & register option after login
@anonimous8823
@anonimous8823 3 жыл бұрын
PLEASE UPLOAD MORE ..
@justaman834
@justaman834 3 жыл бұрын
in laravel 8, i have /api/register 500
@danielmarulisitohang433
@danielmarulisitohang433 4 жыл бұрын
brother can u help me with dynamic menu with package
@danielmarulisitohang433
@danielmarulisitohang433 4 жыл бұрын
Like wordpress
@mdkholil8363
@mdkholil8363 4 жыл бұрын
Next please
@moshiurrahman933
@moshiurrahman933 3 жыл бұрын
next tutorial provide
@mdkholil8363
@mdkholil8363 4 жыл бұрын
Next
@pratyamaneechot4502
@pratyamaneechot4502 4 жыл бұрын
Auth user admin role pless😂😂
@GoogleUser-mx5oe
@GoogleUser-mx5oe 3 жыл бұрын
You did not use Authentication, no token? Wasted my 35 minutes.
Laravel SPA Authentication - setup and common mistakes
16:55
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 13 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 31 МЛН
Authentication in Vue using Laravel Sanctum
23:06
Andrew Schmelyun
Рет қаралды 71 М.
Laravel Sanctum/Airlock with Vue for SPA Auth
35:22
Andre Madarang
Рет қаралды 60 М.
Laravel 8 REST API With Sanctum Authentication
54:13
Traversy Media
Рет қаралды 548 М.
Laravel Sanctum SPA Tutorial - React SPA Authentication With Sanctum
14:27
Laravel Sanctum SPA Authentication Explained
7:14
Tuto1902
Рет қаралды 1,5 М.
Laravel SPA Auth different domains
10:51
cdruc
Рет қаралды 9 М.
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 13 МЛН