laravel-vue-sanctum-spa
laravel-vue-sanctum-spa copied to clipboard
A Laravel 8 and Vue 3 SPA boilerplate using tailwind styling and sanctum for authentication :ghost:
Laravel Vue Sanctum SPA
Laravel and vue spa using tailwind (laravel/ui looks) for styling and sanctum for authentification
Features
- Laravel 8
- Vue + VueRouter + Vuex
- Login, register, update profile
- password reset
- Authentication with Sanctum
- Tailwind + Heroicons
Installation
-
git clone [email protected]:HijenHEK/laravel-vue-sanctum-spa.git --branch v1.0.1 my-spa
set verion and app name -
cd my-spa
- Edit
.env
and set your database connection details and your APP_URL -
php artisan key:generate
-
php artisan migrate
-
npm install
-
npm run dev
mailer
- set up mailer details
- put QUEUE_CONNECTION=database
Notes
- make sure your domain is included in the statefull allowed domains (app/config/sanctum.php) to avoid Unauthorised domains issue #3.
Usage
Development
npm run watch
Production
npm run production
- turn off debug mode .env
Highly inspired by laravel-vue-spa by cretueusebiu where it uses bootstrap 4 fontawesome and JWT for authentification
Other features are under development coming soon :fire:
UI preview