Нет описания

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