This repo contains opinionated versions of the Laravel stubs. The most notable changes are:
- use return type hints where possible
- most docblocks have been removed
- migration are returning class instead of creating class
- Form Request are authorise by default
You can install the package via composer:
composer require maldicore/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 maldicore-stub:publish --force"
]
}
You can publish the stubs using this command:
php artisan maldicore-stub:publish
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information. "# laravel-stubs"