thedoctor0 / laravel-stubs
Opinionated versions of the Laravel stubs for Artisan make commands
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/thedoctor0/laravel-stubs
Requires
- php: ^7.4
- laravel/framework: ^7.0
Requires (Dev)
- orchestra/testbench: ^5.3
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-10-07 05:30:02 UTC
README
This package contains opinionated versions of the Laravel 7.x (and later) stubs for Artisan make commands.
Changes
strict_types
are declared by default- return type hints are present where possible
- missing parameter type hints have been added
- all classes are
final
- migrations don't have a
down
function - form requests don't have
authorize
function
Installation
You can install the package via composer:
composer require thedoctor0/laravel-stubs --dev
If you want to keep stubs up to date, add this hook to your composer.json file:
"scripts": { "post-update-cmd": [ "@php artisan stubs:publish --force" ] }
Usage
You can publish the stubs using this command:
php artisan stubs:publish
Testing
composer test
Credits
License
The MIT License (MIT). Please see license file for more information.