depsimon / laravel-stubs
Opinionated Laravel stubs
Fund package maintenance!
spatie.be/open-source/support-us
Requires
- php: ^7.4
- laravel/framework: ^7.2|^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^9.0
README
This repo contains opinionated versions of the Laravel stubs. The most notable changes are:
- migrations don't have a
down
function - controllers don't extend a base controller
- none of the model attributes are guarded
- use return type hints where possible
- most docblocks have been removed
Installation
You can install the package via composer:
composer require depsimon/laravel-stubs --dev
If you want to keep your stubs up to date with every update, add this composer hook to your composer.json file:
"scripts": { "post-update-cmd": [ "@php artisan depsimon-stubs:publish" ] }
Usage
You can publish the stubs using this command:
php artisan depsimon-stubs:publish
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email simon@gitscape.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.