dive-be / laravel-stubs
Laravel stubs with our special flavor
Installs: 1 687
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dive-be/laravel-stubs
Requires
- php: ^8.1
- laravel/framework: ^9.0
Requires (Dev)
This package is auto-updated.
Last update: 2023-04-29 01:33:02 UTC
README
- 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.