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-...
  • НаукаНаука

Комментарии • 98

  • @victor_bagh
    @victor_bagh 3 года назад +1

    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.

  • @some666some
    @some666some 2 года назад +1

    From Fisher to Fisher - great tutorials! Thank you!

  • @okyigwegbe1977
    @okyigwegbe1977 3 года назад +1

    Fantastic teaching and content. You are the best, Sir Fisher

  • @lupikas2008
    @lupikas2008 3 года назад +1

    Very good tutorials, please upload more Laravel/Vue tuts! Thank you so much. Keep going dude! ;)

  • @alexbeltran2753
    @alexbeltran2753 3 года назад

    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

  • @PauloQueirozJS
    @PauloQueirozJS 3 года назад

    I finished it! Thank you so much!

  • @maxunknown91
    @maxunknown91 3 года назад

    You ARE the man. Thanks a lot!

  • @jacksonlongo1402
    @jacksonlongo1402 3 года назад

    I love you man thanks for the tutorial and keep making videos

  • @igorujevic5986
    @igorujevic5986 3 года назад

    You helped a lot. Thank you.

  • @shusantokumarmodak3710
    @shusantokumarmodak3710 2 года назад +1

    Very usefull. Thanks a lot.

  • @magicbeats330
    @magicbeats330 Год назад

    thankssssssssssssss bro, i was tired to search this , very very thanks sorry for my english , thanks from Colombia

  • @LaravelLover
    @LaravelLover 3 года назад +5

    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 года назад +1

    Laravel + Vue it's a cool combo

  • @AhmedSalah-hk4il
    @AhmedSalah-hk4il 3 года назад

    Thanks dude, Great Job

  • @biswanathbanik
    @biswanathbanik 3 года назад

    very helpful video
    thank you

  • @josuesin97
    @josuesin97 3 года назад

    Amazing bro!! keep up

  • @tepchiva8342
    @tepchiva8342 2 года назад +1

    Thanks so much 💕

  • @thesafaripictures3453
    @thesafaripictures3453 2 года назад +1

    amazing💯

  • @KulkulOfficial
    @KulkulOfficial 4 года назад +1

    yeaaaa!!!!!!! ❤️❤️❤️❤️❤️❤️❤️❤️

  • @Sub_Boi
    @Sub_Boi 5 месяцев назад

    Thank you

  • @ralphzac1023
    @ralphzac1023 Год назад +1

    Thanks man!

  • @johnuloko7842
    @johnuloko7842 3 года назад +1

    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

  • @vasilijestosic8331
    @vasilijestosic8331 4 года назад +1

    Good job!!

    • @vasilijestosic8331
      @vasilijestosic8331 4 года назад

      @@CodeFisher Implementation of jwt token will be good boost for this course, can you implement this in further videos?

  • @codebrain6637
    @codebrain6637 3 года назад

    Good job my friend

  • @khanhpd3129
    @khanhpd3129 2 года назад +1

    Thanks a lot

  • @harisridhar3798
    @harisridhar3798 3 года назад

    can’t thank you enough....

  • @hiroakiyamamoto8192
    @hiroakiyamamoto8192 3 года назад +1

    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.

  • @andrewaghoghovwia1948
    @andrewaghoghovwia1948 4 года назад

    Thanks for the video... please can you make the font size bigger in your next video

  • @yazidthedev4281
    @yazidthedev4281 3 года назад

    good vidéos !

  • @alila3883
    @alila3883 3 года назад

    nice

  • @toannew
    @toannew 3 года назад

    thanks

  • @ballpossession-fb
    @ballpossession-fb 3 года назад +1

    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..

  • @mentalismtrainer
    @mentalismtrainer 3 года назад

    Could I use same method for mobile app development( flutter or android )using laravel+ sanctum?

  • @jaimyvangyseghem5328
    @jaimyvangyseghem5328 3 года назад +1

    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

  • @vasilijestosic8331
    @vasilijestosic8331 4 года назад

    Implementation of jwt token will be good boost for this course, can you implement this in further videos?

  • @lupikas2008
    @lupikas2008 3 года назад

    How to implement log out function on the other component? Show logout button only when user is signed in?

  • @Delapena100
    @Delapena100 3 года назад +1

    could share a link on how to deploy please? on heroku or anywhere

  • @JJ-ot3ps
    @JJ-ot3ps 2 года назад

    is this login version for vue frontend or laravel backend?

  • @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

  • @biswanathbanik
    @biswanathbanik 3 года назад

    i want to back to the login page instead of home page after logout so what need to change in the code

  • @samikemashiku5054
    @samikemashiku5054 3 года назад

    can you make the navbar with home and about disappear when viewing the login page?

  • @anonimous8823
    @anonimous8823 3 года назад

    PLEASE UPLOAD MORE ..

  • @JJ-ot3ps
    @JJ-ot3ps 2 года назад

    hi, is this the same as laravel jetstream auth? which one should i use lol

  • @zayedmohamed737
    @zayedmohamed737 3 года назад

    is the SPA bad for the SEO ?

  • @biswanathbanik
    @biswanathbanik 3 года назад

    And one more thing i want to add a success notification after registration

  • @dsdeg1
    @dsdeg1 3 года назад +1

    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 года назад +1

      same problem, do u solved it yet?

  • @mdkholil8363
    @mdkholil8363 3 года назад

    Next please

  • @tetianakulieshova1479
    @tetianakulieshova1479 2 года назад

    Hello. How to change header after login and show logout instead of login & register? Thank you in advance.

  • @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.

  • @yanasepaiyanasenpai7086
    @yanasepaiyanasenpai7086 2 года назад

    Good Day my friend, I would like to ask why it is always Unauthenticated even though i type it correctely..

  • @shawonhossain519
    @shawonhossain519 3 года назад

    Please show us how to implement multiple authentication

  • @luqmanhadi6490
    @luqmanhadi6490 3 года назад +2

    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 3 года назад +5

      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 3 года назад

      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 !!

  • @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 3 года назад

      User: ' '
      User string not null

    • @mdkholil8363
      @mdkholil8363 3 года назад

      User ' '
      User string not null

  • @prajwalrajbr9378
    @prajwalrajbr9378 3 года назад +1

    Please upload the CRUD

  • @krisnahendra6851
    @krisnahendra6851 2 года назад

    hello, help me please, i have error message : ''Unauthenticated" if call api/user

  • @devaes
    @devaes 2 года назад

    why you didn't use token ?

  • @pyongits
    @pyongits 3 года назад +1

    I saw a lot of vulnerabilities.

  • @mdkholil8363
    @mdkholil8363 3 года назад

    And
    How to hide login & register option after login

  • @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.

  • @wolfeer5365
    @wolfeer5365 2 года назад

    When calling /api/user i get a 401 error,why?

  • @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 года назад +1

      @@DarisMathew7 yeah i am facing thé exact same issue 😕

  • @tayyabshahzad9933
    @tayyabshahzad9933 2 года назад

    Unauthenticated returning on valid cridentails

  • @mdkholil8363
    @mdkholil8363 3 года назад

    Next

  • @pticalarry8640
    @pticalarry8640 3 года назад +1

    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

  • @PandaPendy
    @PandaPendy 3 года назад

    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 3 года назад

      are you using laragon?

    • @PandaPendy
      @PandaPendy 3 года назад

      No I am not using Laragon.

    • @hiroakiyamamoto8192
      @hiroakiyamamoto8192 3 года назад

      @@PandaPendy Are you accessing your application via a URL that includes the port (ex 127.0.0.1:8080) ?

    • @franzqty9059
      @franzqty9059 2 года назад

      @@midasapa Im using laragon and I encounter this error, please help me to fix it

    • @franzqty9059
      @franzqty9059 2 года назад

      @@midasapa Im using laragon and I encounter this error, please help me to fix it

  • @moshiurrahman933
    @moshiurrahman933 3 года назад

    next tutorial provide

  • @justaman834
    @justaman834 3 года назад

    in laravel 8, i have /api/register 500

  • @danielmarulisitohang433
    @danielmarulisitohang433 3 года назад

    brother can u help me with dynamic menu with package

  • @pratyamaneechot4502
    @pratyamaneechot4502 3 года назад

    Auth user admin role pless😂😂

  • @GoogleUser-mx5oe
    @GoogleUser-mx5oe 2 года назад

    You did not use Authentication, no token? Wasted my 35 minutes.