This package contains clean versions of the stubs shipped with Laravel.
Most notably:
- Type declarations are used instead of DocBlocks.
- Controllers don't extend a base controller.
- Install this package:
composer require zepfietje/laravel-stubs --dev
- Add the following hook to the scripts in
composer.json
to keep your stubs in sync with updates to this package:"post-update-cmd": [ "@php artisan stub:publish --force" ]
- Publish the stubs:
php artisan stub:publish