Skip to content

Opinionated versions of the Laravel stubs

License

Notifications You must be signed in to change notification settings

Morning-Train/laravel-stubs

Repository files navigation

laravel-stubs

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

Usage

You can publish the stubs using this command:

php artisan morningtrain-stub:publish

Testing

composer test

Credits

License

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

About

Opinionated versions of the Laravel stubs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages