laracraft-tech/laravel-schema-rules
Generate baseline Laravel validation rules from your database schema. Create rules for entire tables or selected columns, generate Form Request classes, and configure columns to always skip. Works across supported drivers and serves as a solid starting point for custom validation.
Adopt if:
Look elsewhere if:
"This package cuts validation development time by 70% for Laravel apps by auto-generating database-aligned rules. For a team managing 20+ tables, that’s ~50 hours/year saved—freeing devs to focus on core features. It also reduces bugs by ensuring validation rules never drift from the schema. Low-risk (MIT license, 363+ adopters), and integrates seamlessly with our existing Laravel stack."
*"Schema Rules eliminates repetitive validation boilerplate. With a single CLI command (php artisan schema:generate-rules), we get:
exists:addresses,id).date, enum, numeric).--create-request flag).created_at).
Tradeoff: Basic rules only—custom logic still requires manual tweaks. Ideal for 90% of CRUD validation needs."**"No more copy-pasting required|string|max:255 for every varchar(255) column. Run php artisan schema:generate-rules users to get:
['email' => ['required', 'string', 'max:255']]
Bonus: Add --create-request to auto-generate a StoreUserRequest class. Pro tip: Use --columns to target specific fields, and configure skip_columns in config/schema-rules.php to exclude timestamps."*
How can I help you explore Laravel packages today?