Modern SPA starter template for rapid prototyping with the following features:
- JSON API
- JWT Authentication
- Login Form with validation
- Register Form with validation
- Email Verification Functionality
- Forgot Password Functionality
- Customizable Email Template
- Pre-configured SMTP for Gmail
- PHP 7.2.5
- Laravel 7
- tymon/jwt-auth
- Vue 2
- Vuetify 2
git clone https://github.com/oshell/laravel-vuetify-spa-starter.git
cd laravel-vuetify-spa-starter
composer install
cp .env.example .env
php artisan key:generate
php artisan jwt:secret
- change
DB_DATABASE
,DB_USERNAME
,DB_PASSWORD
- change
MAIL_USERNAME
,MAIL_PASSWORD
Make sure the database from your .env
file already exists.
php artisan migrate
yarn
php artisan serve
yarn hot
Development server runs on http://localhost:8000/
. It will serve resources/views/spa.blade.php
, which includes compiled css and js.
- Logo from the Forms and Appbar is located under
public/images/logo.png
- Email Template under
resources/views/email/cta.blade.php
- Email-Template for email verification and password reset is the same
- development under
http://localhost:8000/api/preview/mail
- API routes are added under
routes/api.php
- Routes which require authentication are moved into
Route::middleware('auth:api')->group()
- token and user are cached in localstorage
auth
can be imported to access user informationimport auth from '../auth'
andauth.user()
api
is used for all further requests and handles errorsLoadingOverlay
component can be used to suspend cards