oliversarfas / laravel-boilerplate
该软件包已被废弃,不再维护。未建议替代软件包。
Oliver Sarfas - Laravel 项目样板
0.1.0
2019-03-04 10:14 UTC
Requires
- php: ^7.1.3
- fideloper/proxy: ^4.0
- laravel/framework: 5.8.*
- laravel/tinker: ^1.0
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.2
- barryvdh/laravel-ide-helper: ^2.6
- beyondcode/laravel-dump-server: ^1.0
- beyondcode/laravel-query-detector: ^1.0
- brianium/paratest: 2.*
- filp/whoops: ^2.0
- fzaninotto/faker: ^1.4
- mockery/mockery: ^1.0
- nunomaduro/collision: ^2.0
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2020-09-04 14:13:50 UTC
README
带有标准软件包和额外配置的 Laravel 样板
用法
要安装基本的 Laravel 安装,请运行以下命令。
composer create-project --prefer-dist oliversarfas/laravel-boilerplate
包含的软件包
- https://www.github.com/barryvdh/laravel-debugbar
- https://www.github.com/barryvdh/laravel-ide-helper
- https://www.github.com/beyondcode/laravel-dump-server
- https://www.github.com/beyondcode/laravel-query-detector
- https://www.github.com/brianium/paratest
特定配置更改
PHPUnit
- 我已更新了
phpunit.xml,包括 sqlite 数据库。这允许在包含数据库集成时加快 PHPUnit 测试速度 - 在运行测试时,通过 composer 加载
test/utilities/functions.php中声明的函数create()和make()短函数,以节省编写factory(MyClass::class)->create()的时间
TestCase.php有login(App\User User = null): self函数- 这允许用户从任何测试中调用
$this->login()(比actingAs()更易于使用)
- 这允许用户从任何测试中调用
- 所有通知、事件和邮件都是伪造的。确保当运行 PHPUnit 时没有发送任何内容