# IGGA US Laravel Migration

This is the Laravel 12 migration of the original page-oriented PHP website.

## Requirements

- PHP 8.2 or newer with PDO SQLite or PDO MySQL
- Composer 2

## Local setup

```bash
composer install
copy .env.example .env
php artisan key:generate
php artisan migrate
php artisan serve
```

The default configuration uses SQLite. For MySQL, set `DB_CONNECTION=mysql` and
the `DB_HOST`, `DB_PORT`, `DB_DATABASE`, `DB_USERNAME`, and `DB_PASSWORD` values
in `.env`, then run `php artisan migrate`.

## Migrated behavior

- Legacy pages are Blade views under `resources/views`.
- Static files are served from `public/assets`.
- Public URLs remain extensionless and match the original site.
- Contact submissions use validation, CSRF protection, rate limiting, and Eloquent.
- Visitor counts are stored in `visitor_counts` and increment once per session.
- The contact message listing is only routed in the local environment. Add the
  application's authentication/authorization policy before exposing it elsewhere.

## Verification

```bash
php artisan test
vendor/bin/pint --test
```
