chengkangzai/laravel-stubs

This package is abandoned and no longer maintained. The author suggests using the spatie/laravel-stubs package instead.

Opinionated Laravel stubs

Fund package maintenance!
chengkangzai

2.4.4 2022-03-17 12:54 UTC

This package is auto-updated.

Last update: 2023-03-07 13:17:24 UTC


README

68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31

Opinionated Laravel stubs

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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

Installation

You can install the package via composer:

composer require chengkangzai/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 chengkangzai-stub:publish --force"
    ]
}

Usage

You can publish the stubs using this command:

php artisan chengkangzai-stub:publish

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.