mr.incognito/crudify
Laravel package to scaffold API or web CRUD via Artisan. Generates models, migrations, controllers, form requests, resources, and optional Blade views. Supports typed validation, nullable fields (~), foreign keys/constraints, defaults, exclude flags, and a delete:crud cleanup command.
Pros:
string|max:255), enforcing consistency with Laravel’s validation system. Reduces risk of runtime errors from malformed input.constrained relationships, aligning with database-first design and reducing SQL injection risks via Eloquent’s built-in protection.--exclude=model,migration) to customize generation, accommodating teams with pre-existing models or custom migration logic.Cons:
?page=1).Api/V1/).timestamps, softDeletes).FormRequest classes.resources/views/{model}/) could conflict with custom view structures.{Model}Resource, which may clash with existing API resources (e.g., UserResource vs. AdminUserResource).auth:sanctum) or policy checks.belongsTo without constraints)?spatial columns, JSON fields) that this package doesn’t support?dispatch() for long-running tasks), or will those need to be added manually?TestModel) to validate:
User → Post).--type=api) for internal services or admin APIs.--type=web) for admin panels, ensuring Blade templates align with the team’s design system.--exclude=model) for cases where models already exist.public function customAction()).FormRequest classes.delete:crud to reverse generation if conflicts arise.How can I help you explore Laravel packages today?