# Step 22 - Final QA, Schema Repair and Testing Checklist

## Install

1. Run `sql/01_RUN_THIS_SQL_FIRST.sql` in phpMyAdmin.
2. Copy everything inside `full_files_to_replace` into your Laravel project root.
3. Add this line at the bottom of `routes/web.php`:

```php
require __DIR__.'/admin_qa.php';
```

Or run:

```bat
tools\add_step22_route.bat
```

4. Clear Laravel cache:

```bash
php artisan optimize:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
php artisan cache:clear
```

5. Start server:

```bash
php artisan serve --port=8007
```

## URLs

- `/admin/qa/dashboard`
- `/admin/qa/schema`
- `/admin/qa/routes`
- `/admin/qa/checklist`
- `/admin/qa/logs`

## Important

The schema repair page generates SQL suggestions. Always backup your database before running generated repair SQL on production.
