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.
post-update-cmd in composer.json) to auto-update stubs during dependency upgrades.orchestra/canvas for Laravel 13.x, ensuring consistency across distributed codebases.Adopt if:
orchestra/canvas and needs standardized stubs for Laravel 13.x packages.down() methods, base controllers) from day one.Look elsewhere if:
down() methods, guarded attributes) that this package intentionally omits.orchestra/canvas and don’t need Laravel 13.x package stubs.*"This update makes the package a must-have for Laravel 13.x and PHP 8.5 projects, ensuring our code generation stays modern and consistent without manual effort. By adopting it now, we:
down() methods) upfront.
Cost: Minimal (one Composer install). Risk: None—easy to revert or customize further. This is a low-effort, high-impact DX investment."**"v2.1.0 is a game-changer for Laravel 13.x teams:
down() methods, no base controllers, no guarded attributes—just clean, modern templates.orchestra/canvas: Perfect for package developers targeting Laravel 13.x.
How to adopt:composer require rawilk/laravel-stubs --devphp artisan custom-stub:publishcomposer.json to auto-update stubs on Laravel upgrades.
Tradeoff: Loses some Laravel defaults, but gains speed, consistency, and future-readiness."**"Tired of stubs breaking after Laravel upgrades? This package now automatically handles Laravel 13.x/PHP 8.5—no more manual fixes! What’s new:
down() methods, no base classes, no fluff.
Quick start:composer require rawilk/laravel-stubs --dev
php artisan custom-stub:publish
Pro move: Add this to your composer.json to auto-update stubs when Laravel upgrades:
"scripts": {
"post-update-cmd": "php artisan custom-stub:publish"
}
Result: Faster dev cycles, less boilerplate, and zero stub-related surprises."*
How can I help you explore Laravel packages today?