Installation
Get SaaS Starter Vue up and running on your local machine by following these installation steps.Prerequisites
Before you begin, ensure you have the following installed on your development machine:PHP
Version 8.2 or higherCheck your version:
Composer
Latest versionPackage manager for PHP:
Node.js
Version 18 or higherRequired for frontend build:
PNPM
Latest versionFast package manager:
Database Requirement
SaaS Starter Vue is configured to use PostgreSQL by default. Make sure you have PostgreSQL installed and running.
Installation Steps
1
Clone the Repository
Clone the SaaS Starter Vue repository to your local machine:
2
Configure Environment Variables
Copy the example environment file and configure your settings:Open
.env and configure your database connection:.env
3
Run Automated Setup
SaaS Starter Vue includes a convenient setup script that handles all installation tasks:This command automatically:
- Installs PHP dependencies via Composer
- Generates application key
- Runs database migrations (creates all tables)
- Installs frontend dependencies via PNPM
- Builds frontend assets
The setup process may take a few minutes depending on your internet connection and system performance.
4
Verify Installation
After setup completes, verify everything is installed correctly:
Manual Installation (Alternative)
If you prefer to run installation steps manually, or if the automated setup encounters issues:1
Install Backend Dependencies
2
Generate Application Key
3
Run Database Migrations
4
Install Frontend Dependencies
5
Build Frontend Assets
Configuration Details
Multi-Tenancy Setup
The application usesstancl/tenancy for multi-tenant architecture. Tenancy is automatically configured, and migrations create both central and tenant databases:
- Central Database: Stores system users, tenants, and plans
- Tenant Databases: Each tenant gets an isolated database schema
Tenant databases are created automatically when you create a new tenant through the admin dashboard.
Queue Configuration
By default, the application uses database queues:.env
- Sending emails (password resets, verifications)
- Tenant provisioning tasks
- Background processing
Session Configuration
Sessions are stored in the database for better scalability:.env
Development Tools
Code Quality Tools
The project includes several tools for maintaining code quality:Troubleshooting
Common Issues
Database connection failed
Database connection failed
Solution: Verify your PostgreSQL credentials in
.env and ensure the database exists:PNPM not found
PNPM not found
Solution: Install PNPM globally:
Permission denied errors
Permission denied errors
Solution: Ensure storage and cache directories are writable:
Migration errors
Migration errors
Solution: Reset the database and run migrations again:
Getting Help
If you encounter issues not covered here:- Check the GitHub Issues
- Review Laravel 12 and Vue 3 documentation
- Verify all prerequisites are correctly installed
Next Steps
Quick Start Guide
Now that installation is complete, follow the quickstart guide to run the application and create your first tenant.