Install the package as a dev dependency:
composer require --dev vcian/laravel-db-auditor
Publish config:
php artisan vendor:publish --tag=db-auditor
Run the audit once to get immediate insights:
php artisan db:audit
Start with the CLI (db:standard, db:constraint, db:track) before exploring the Web UI at /laravel-db-auditor.
php artisan db:standard to your local pre-commit hook or CI pipeline to enforce naming standards (e.g., snake_case columns, created_at/updated_at presence).php artisan db:constraint to catch missing indexes or foreign keys before they hit production. Use the interactive prompt to add constraints where safe (MySQL/SQLite only).php artisan db:track in PR reviews to see who created/modified tables (via Git author) and ensure schema changes follow agreed conventions./laravel-db-auditor UI to visually inspect standard violations (e.g., camelCase fields) and compare tables side-by-side—ideal for onboarding and cross-team alignment.skip_tables in config/db-auditor.php to exclude audit-irrelevant tables (e.g., sessions, migrations).db:track: To see commit authors, ensure your app lives in a Git repo and DB_DATABASE is set correctly in .env. Falls back to system username if no Git info is found.created_at/updated_at timestamps won’t be flagged unless your project explicitly defines timestamp rules in config/db-auditor.php. Adjust rules.timestamp to enforce your team’s policy.config/db-auditor.php—e.g., enforce INT(10) for IDs or ban text columns without need.How can I help you explore Laravel packages today?