This repository is a Laravel application. Below are concise setup, migration, and seeding instructions so you can get the database and dev environment running locally.
- PHP (8.x recommended)
- Composer
- Node.js + npm (for building assets)
- A database (MySQL, Postgres, or SQLite)
- Install PHP dependencies
composer install- Install frontend deps and build (optional for dev)
npm install
npm run dev- Environment
Copy or create your .env file and configure DB settings. If the repo contains an .env.example file:
cp .env.example .envEnsure database credentials in .env are correct. For SQLite you can create a file:
touch database/database.sqlite
# then set DB_CONNECTION=sqlite in .env- Generate the app key
php artisan key:generateRun all migrations and seeders in one command:
php artisan migrate --seedAlternative: migrate and then seed explicitly
php artisan migrate
php artisan db:seedRun a single seeder class (examples in this repo):
php artisan db:seed --class=ExperienceSeeder
php artisan db:seed --class=MapPointSeeder
php artisan db:seed --class=RoomSeederReset and re-seed the database (dangerous: drops all tables):
php artisan migrate:fresh --seedRollback the last migration batch:
php artisan migrate:rollback- Create storage symlink for public access to storage files:
php artisan storage:link- Run the built-in dev server:
php artisan serve- Run tests (Pest or PHPUnit):
./vendor/bin/pest
# or
php artisan testLook in database/seeders/ for available seeders. At time of writing this repo includes:
DatabaseSeeder.phpExperienceSeeder.phpMapPointSeeder.phpRoomSeeder.php
Run specific seeders with php artisan db:seed --class=YourSeederClass as shown above.
- If migrations fail with SQL errors, verify
.envDB credentials and that the database exists. - For permission errors when writing to
storageorbootstrap/cache, run:
sudo chown -R $USER:www-data storage bootstrap/cache
chmod -R ug+rwx storage bootstrap/cache- If you change
.env, restart services or re-runphp artisan config:clearandphp artisan cache:clear:
php artisan config:clear
php artisan cache:clear- After migrations and seeding, visit the app via
php artisan serveor your configured web server. - If you'd like, I can: run migrations on this machine, create a script to automate setup, or add a Docker setup — tell me which.