rawilk/laravel-stubs
Opinionated Laravel stubs with strict types, fewer docblocks, unguarded models, controllers without a base class, migrations without down methods, and added return type hints. Publish via artisan and optionally keep stubs updated via composer hooks.
down() migrations, minimal docblocks), which may still conflict with team conventions.down() migrations persists as a potential workflow disruptor for rollback-heavy projects.down() migrations, guarded attributes).orchestra/canvas for package development.laravel-shift/stubs).down() migrations, no guarded attributes)?down() migrations affect rollback testing?orchestra/canvas, is the namespace/configuration overhead justified?orchestra/canvas for package development.down()).composer require --dev rawilk/laravel-stubs:^2.1).php artisan custom-stub:publish) and test with a non-critical feature in Laravel 13.x (if applicable).composer.json to auto-publish stubs on post-update-cmd:
"scripts": {
"post-update-cmd": ["@php artisan custom-stub:publish --force"]
}
config/stubs.php.down() migration removal and test in Laravel 13.x environments.orchestra/canvas for package development.laravel-shift/stubs).down() migrations removed; rollbacks must use alternative strategies (e.g., manual SQL or third-party tools like laravel-migration-generator).bootstrap/app.php, bootstrap/providers.php).down() migration removal and test in PHP 8.5 environments.declare(strict_types=1)) catches type-related bugs early.down() migrations (e.g., database backups, custom scripts).orchestra/canvas.| Risk | Impact | Mitigation |
|---|---|---|
| Stub opinion conflicts | Developer frustration, slow adoption | Conduct a team vote before adoption; allow opt-outs. |
Missing down() migrations |
Broken rollback workflows | Implement database backups or **third-party |
How can I help you explore Laravel packages today?