Skip to content

soheilghs/Laravel-Passport-Vue-Auth

 
 

Repository files navigation

Getting Started:

  1. Composer Install: composer install
  2. NPM Install: npm install
  3. Database: php artisan migrate --seed
  4. Install passport clients: php artisan passport:install
    • Copy the Client Secret from Client ID: 2 to your EVN variable VUE_CLIENT_ID
  5. run php artisan config:clear
  6. Use Auth middleware for protected routes auth:api
    • test with GET: /api/user (already exists in routes/api.php)

Screenshots:

About

Vue SPA Authentication with Laravel Passport

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 68.9%
  • Vue 30.5%
  • HTML 0.6%