laravel-stubs maintained by dive-be
Description
Laravel stubs with our special flavor
Author
Last update
2023/01/31 13:47
(dev-master)
License
Downloads
1 687
Tags
🍦 DIVE flavored Laravel stubs
- We don't do
downin migrations. - Controllers do not extend a base
Controller. - Models are not
guardedbecause we are mature developers. - Add type hints wherever possible.
- Removed all of the docblocks.
- All files
declare(strict_types=1). - Traits are defined one per line.
- Console commands return a
SUCCESSby default. Closuresarestaticwherever possible. Why not squeeze out every bit of performance?- Fix some minor PSR-12 violations such as
(new MailMessage)vs.(new MailMessage()).
Installation
You can install the package via composer:
composer require --dev dive-be/laravel-stubs
Usage
Publish the stubs using:
php artisan dive-stubs:publish
Add the following snippet to your composer.json file to keep your published stubs up-to-date:
"scripts": {
"post-update-cmd": [
"@php artisan dive-stubs:publish --overwrite"
]
}
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 oss@dive.be instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.