You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
380 B

1 month ago
  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. }