A SaaS-ready boilerplate built on top of the official Laravel + Livewire starter kit.
- Multitenancy powered by Spatie Multitenancy, without tenant identifiers or custom subdomains.
- Permissions handled via Spatie Laravel-Permission, roles are not used.
- Simple user-based access control:
super_adminandtenant_adminboolean flags are stored in theuserstable.- Other users have
nullfor both fields.
- Tenant onboarding includes:
- Selecting a country
- Choosing a currency
- Setting a unit of measurement (e.g. kg, lbs, liters)
- Superadmin Subscription Plan Management:
- The superadmin can manage subscriptions using Paddle (set up with Laravel Cashier for Paddle). This includes the ability to view and manage subscription plans, and manage the billing process for tenants.
# 1. Clone the repository
git clone git@github.com:mutuku/saasboilerplate.git
cd saasboilerplate
# 2. Install dependencies
composer install
# 3. Copy and configure environment
cp .env.example .env
php artisan key:generate
# 4. Run database migrations and seeders
php artisan migrate --seed
# 5. Serve the application
php artisan serve-
Superadmin:
Email:admin@example.com
Password:password -
Tenant:
Email:john@acme.com
Password:password
- This application is provided as is, with no guarantees regarding security, performance, or functionality. It is meant for developers to use as a base for their own applications.
- Developers should thoroughly test the application for security, functionality, and performance before using it in a production environment.
The Laravel + Livewire SaaS Boilerplate is open-sourced software licensed under the MIT license.