暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CreatesApplication.php 375B

123456789101112131415161718192021
  1. <?php
  2. namespace Tests;
  3. use Illuminate\Contracts\Console\Kernel;
  4. use Illuminate\Foundation\Application;
  5. trait CreatesApplication
  6. {
  7. /**
  8. * Creates the application.
  9. */
  10. public function createApplication(): Application
  11. {
  12. $app = require __DIR__.'/../bootstrap/app.php';
  13. $app->make(Kernel::class)->bootstrap();
  14. return $app;
  15. }
  16. }