korridor/laravel-model-validation-rules
Model::where()->exists() calls with a reusable rule).POST /orders with user_id validation).Model::where()->exists() across forms/APIs (code smell).For Executives: "This package cuts dev time for a common pain point—validating if a database record exists—by replacing manual queries with a reusable Laravel rule. For example, instead of writing custom logic to check if a user/role exists in every form, we can standardize it. This reduces bugs, speeds up feature delivery, and aligns with our tech stack. Low risk (MIT license), high ROI for validation-heavy apps."
For Engineering:
*"This drops in as a ValidationRule for Eloquent models (e.g., exists:App\User,active=true). It’s lightweight, tested, and avoids reinventing the wheel for Model::where()->exists() checks. Ideal for:
POST /orders with user_id).How can I help you explore Laravel packages today?