Laravel JWT Authentication | laravel vue jwt
Inthisarticle,wewilldiscusstheLaravelJWTAuthentication–VueJsSPA(Part2).Inthispart,wewillcontinuefromwhereweleaveinthetutorial(part1)[1].Still,ifyouarenotreadingthepreviouspartthenpleasegoandcheckitonceforbetter understanding.Inthepreviouspart,I’mdescribingthe LaravelJWTAuthentication inbrief.YoucanlearnhowtomaketheAPIauthenticationusingJWT.Today,IwilldescribehowwecansetupVueJsinLaravelapplicationandhowwecanconnectJWTAPIauthenticationwithVueJsfrontend.SetupVueJsVueJsisalreadypartofaLaravelapp...
In this article, we will discuss the Laravel JWT Authentication – Vue Js SPA (Part 2). In this part, we will continue from where we leave in the tutorial (part 1)[1].
Still, if you are not reading the previous part then please go and check it once for better understanding. In the previous part, I’m describing the Laravel JWT Authentication in brief. You can learn how to make the API authentication using JWT.
Today, I will describe how we can setup Vue Js in Laravel application and how we can connect JWT API authentication with Vue Js frontend.
Setup Vue JsVue Js is already part of a Laravel application. You just need to execute the following command in your terminal and install the required dependencies.
npm installAfter executing this command, you will see the node_modules folder in your Laravel application. This folder contains all the necessary node modules. You can read here the full process of Vue Js setup[2].
Then open your “res...