text4u
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.

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. }