Skip to content
The default Laravel stubs modified to our liking
Branch: master
Clone or download

Latest commit

Latest commit f6bd081 Mar 25, 2020


Type Name Latest commit message Commit time
Failed to load latest commit information.
.github wip Mar 24, 2020
src Integration with orchestra/canvas Mar 25, 2020
stubs wip Mar 24, 2020
tests wip Mar 24, 2020
.editorconfig wip Mar 24, 2020
.gitattributes wip Mar 24, 2020
.gitignore wip Mar 24, 2020
.php_cs wip Mar 24, 2020
.styleci.yml Update Mar 25, 2020 wip Mar 24, 2020 wip Mar 24, 2020 Update (#5) Mar 24, 2020
composer.json wip Mar 24, 2020
phpunit.xml.dist wip Mar 24, 2020

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

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.


You can install the package via composer:

composer require spatie/laravel-stubs --dev


You can publish the stubs using this command:

php artisan spatie-stub:publish


composer test


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


Please see CONTRIBUTING for details.


If you discover any security related issues, please email instead of using the issue tracker.



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

You can’t perform that action at this time.