reusserdesign/laravel-stubs

Opinionated Laravel stubs
4,663
Install
composer require reusserdesign/laravel-stubs
Latest Version:1.0.3
PHP:^7.4|^8.0
License:MIT
Last Updated:Apr 4, 2023
Links: GitHub  ·  Packagist
Maintainer: reusserdesign

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:

  • migrations don't have a down function
  • controllers don't extend a base controller
  • none of the model attributes are guarded
  • use return type hints where possible
  • most docblocks have been removed

Installation

You can install the package via composer:

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

Usage

You can publish the stubs using this command:

php artisan reusser-stub:publish

Testing

composer test

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 developer@reusserdesign.com instead of using the issue tracker.

Credits

License

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

Related Packages

spatie/laravel-stubs

Opinionated Laravel stubs

758,968 252
mltstephane/laravel-stubs

Opinionated Laravel stubs

409 0
clickbar/laravel-stubs

Opinionated Laravel stubs

95,186 0
saniolab/laravel-stubs

Opinionated Laravel stubs

17,204 0