add laravel example

This commit is contained in:
Andras Bacsai committed 2024-03-08 11:09:34 +01:00
1 parent d9f4c5d3a9
commit a1dc105ed5
79 files changed
+11199

No files matched your search

+21
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;
}
}