Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Laravel and Vue JS authentication using JSON Web Tokens

This source code demonstrates how to use JWTs with Laravel and Vue JS.

Laravel version 5.5

Blog post - Part 1

Blog post - Part 2

Requirements

Setting up the project

  1. Clone the repository
  2. Run composer install
  3. Configure Laravel directory permissions (documentation)
  4. Create a database and setup the database configuration inside .env
  5. Run php artisan key:generate
  6. Run php artisan migrate
  7. Run php artisan jwt:secret
  8. Run npm install
  9. Use php artisan tinker to create a test user:
App\User::create(['name' => 'Test User', 'email' => 'test@email.com', 'password' => Hash::make('Password01')])

Build

  • Once you have made changes to the JavaScript or SCSS files you will want to run npm run dev or npm run production

Login page

About

Laravel and Vue JS authentication using JSON Web Tokens

Resources

Releases

No releases published

Packages

No packages published