Skip to content

The default Laravel stubs modified to our liking

License

Notifications You must be signed in to change notification settings

tpg/laravel-stubs

 
 

Repository files navigation

run-tests

A slightly more opinionated version of Spatie's Laravel Stubs package.

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
  • Added declare(strict_types=1); to all stubs

Installation

You can install the package via composer:

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

Usage

You can publish the stubs using this command:

php artisan tpg-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've found a bug regarding security please mail [email protected] instead of using the issue tracker.

Credits

License

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

About

The default Laravel stubs modified to our liking

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%