mehedi250/laravel-structure-kit
Pros:
app/Domain/User/...).Cons:
composer.json constraints).app/Http/Controllers/, app/Models/, etc.). Custom paths require manual configuration.spatie/laravel-permission), scaffolded migrations may overlap.App\Providers\RepositoryServiceProvider).@generated-by tags).--force flag behavior).User) and validate against existing codebase.RepositoryInterface naming).phpunit test to verify scaffolded code compiles and passes basic linting.App\Modules\ vs. App\)?| Component | Compatibility Notes |
|---|---|
| Laravel 10+ | ✅ Tested (per README). Check composer.json for exact version constraints. |
| Laravel Breeze/Jet | ⚠️ May conflict with auth scaffolding (e.g., duplicate User model). |
| Livewire | ✅ Works if using standard controller routes. |
| API Resources | ❌ No built-in support; requires custom stubs. |
| Queues/Jobs | ❌ Missing; would need manual addition to templates. |
| Testing (Pest) | ❌ No test scaffolding; integrate via custom templates. |
Settings) and validate:
RepositoryInterface to include App\Contracts\.#[GeneratedByStructureKit] PHPDoc tags for IDE support.create-{timestamp}.php migrations).Services/ to Actions/), existing code may break.composer.json aliases to pin a specific version.laravel-zero or octane).app/ directory files before first run.php artisan make:controller in favor of scaffolded commands.make:auth) in favor of package-generated alternatives.Repository interface usage).STRUCTURE_KIT.md file.composer require mehedi250/laravel-structure-kit:1.0.0 to avoid surprises.users vs. user-profile).structure:validate CLI command to pre-check conflicts.--parallel flag (if supported) or batch generation.structure:generate step to ensure scaffolding is up-to-date in pipelines.| Risk | Impact | Mitigation Strategy |
|---|---|---|
| Template bugs | Broken scaffolded code | Run php artisan structure:validate pre-deploy. |
| Migration conflicts |
How can I help you explore Laravel packages today?