# Dev Commands

## Backend (Laravel)

```bash
# Server
php artisan serve

# Database
php artisan migrate
php artisan migrate:fresh --seed             # Reset + seed (dev only)
php artisan db:seed --class=RolesAndPermissionsSeeder

# Cache
php artisan config:cache
php artisan route:cache
php artisan cache:clear
php artisan optimize:clear

# Code quality
./vendor/bin/pint                            # Format PHP
./vendor/bin/pint --test                     # Dry run

# Testing
php artisan test
php artisan test --filter=ClassName
php artisan test --coverage

# Custom sync / scheduled commands
php artisan app:sync-properties-with-rentals
php artisan app:sync-reservations-with-rentals
php artisan app:send-quiz-mails-for-today
php artisan app:send-today-event-notifications
php artisan app:check-on-boarding-folders
php artisan app:cleanup-property-drafts
```

## Frontend (Vite + React)

```bash
npm run dev          # Hot reload dev server
npm run build        # Production build
npm run build:ssr    # SSR build
npm run lint         # ESLint fix
npm run format       # Prettier format
npm run types        # tsc --noEmit (type check)
```

## First-Time Setup

```bash
composer install
npm install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
npm run dev
php artisan serve
```
