Initialize laravel app

This commit is contained in:
Frankie B 2023-06-13 21:59:16 +01:00 committed by Frankie B
commit a464ef4c0e
149 changed files with 10967 additions and 1464 deletions

View file

@ -0,0 +1,21 @@
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Application;
trait CreatesApplication
{
/**
* Creates the application.
*/
public function createApplication(): Application
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
return $app;
}
}