create laravel

This commit is contained in:
2023-03-03 08:57:07 +01:00
parent d0df081a5f
commit a60773a6a1
84 changed files with 11266 additions and 1 deletions

View File

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