This tutorial about creating a SPA with Laravel and Vue.
This tutorial is available
- PHP 7
- Composer
- NodeJs
- MySQL
- Clone the repository
- Installer back dependencies with
composer install
- Install front dependencies with
npm i
- Change .env configuration below like
- Database credentials (
DB_HOST
,DB_PORT
, ...) - Application url (
APP_URL
). Either virtual host address if you configure one, either address form the commandphp artisan serve
- Database credentials (
- Generate application key with
php artisan key:generate
- Generate JWT key with
php artisan jwt:secret
- Import DB (trakinvest.sql) or Migrate
php artisan migrate --seed
- Build front with
npm run dev
ornpm run watch
If you did'nt set a virtual host, launch application with the php artisan serve
command. By default, application will be served at http://localhost:8000
or Change in env and App.js
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.