Pochwar / laravel-vue-spa

82 stars 31 forks source link

Laravel-Vue-SPA

This repository is the result of a tutorial about creating a SPA (Single Page Application) with role-based authentication with Laravel and Vue.

This tutorial is available here (version française ici).

Update Laravel 6

The project has been updated for Laravel 6. Just switch to the 'Laravel-6.1' branch.

Prerequiries

Installation

If you did'nt set a virtual host, launch application with the php artisan serve command. By default, application will be served at http://127.0.0.1:8000

Configuration

You can change the length of time (in minutes) that the token will be valid for by changin the JWT_TTL value in the .env file.

Usage

Log as admin with admin@test.com:admin or as user with user@test.com:secret