Installation
This page gets the code onto your machine. Local development covers the full first run (database, seeding, tenants, dev server) in more detail.
Repository access → clone → composer install + .env → migrate and seed → npm install → open APP_URL1. Get repository access
After purchase, your GitHub account is automatically invited to the kit repository. See Repository access.
2. Clone the kit
git clone https://github.com/erag-labs/saas-laravel-starter-kit-vue.git my-saasgit clone https://github.com/erag-labs/saas-laravel-starter-kit-react.git my-saasgit clone https://github.com/erag-labs/saas-laravel-starter-kit-svelte.git my-saascd my-saasKeep updates easy
Rename the kit remote to upstream right away and push to your own repository as origin. This makes weekly updates a simple merge. See Updates.
git remote rename origin upstream
git remote add origin git@github.com:your-org/my-saas.git3. Install and configure
composer install
cp .env.example .env
php artisan key:generateEdit .env (at minimum APP_URL, APP_DOMAIN and the DB_* keys) and create the database. Then:
php artisan migrate --seed
npm installEach step is explained in Local development.
One-command setup
composer setup runs most of the steps above in one go:
| Step | Command |
|---|---|
| Install PHP dependencies | composer install |
Create .env (only if it does not exist) | copies .env.example |
| App key | php artisan key:generate |
| Central migrations | php artisan migrate --force |
| Frontend | npm install, npm run build |
No seeding
composer setup does not seed the database, and it migrates using whatever .env contains. Create and edit .env first, create the database, run composer setup, then run php artisan db:seed.
Open the app
With Herd, link the project to the domain you set in APP_DOMAIN:
herd link vue # serves this folder as vue.test and *.vue.testOpen APP_URL (for example http://vue.test) and sign in with a seeded user.