Skip to content

Isense-Development/laravel-vue-jwt

 
 

Repository files navigation

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

Setting up the project

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

Login page

About

Laravel and Vue JS authentication using JSON Web Tokens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 90.8%
  • Vue 5.1%
  • HTML 4.1%