thedoctor0 / laravel-stubs
为Artisan make命令设计的Laravel stubs的特定版本
1.0.0
2020-06-25 08:51 UTC
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: 2024-09-07 03:23:47 UTC
README
此包包含Laravel 7.x(及更高版本)stubs的特定版本,用于Artisan make命令。
变更
- 默认声明了
strict_types
- 尽可能的地方有返回类型提示
- 添加了缺失的参数类型提示
- 所有类都是
final
- migrations没有
down
函数 - 表单请求没有
authorize
函数
安装
您可以通过composer安装此包
composer require thedoctor0/laravel-stubs --dev
如果您想保持stubs更新,请将此钩子添加到您的composer.json文件中
"scripts": { "post-update-cmd": [ "@php artisan stubs:publish --force" ] }
用法
您可以使用此命令发布stubs
php artisan stubs:publish
测试
composer test
鸣谢
许可证
MIT许可证(MIT)。请参阅许可证文件以获取更多信息。