dive-be/laravel-stubs

This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel stubs with our special flavor

1.2.0 2023-01-31 12:47 UTC

This package is auto-updated.

Last update: 2023-04-29 01:33:02 UTC


README

Latest Version on Packagist

  • We don't do down in migrations.
  • Controllers do not extend a base Controller.
  • Models are not guarded because 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 SUCCESS by default.
  • Closures are static wherever 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.