Vanilla Laravel 7 for MotorradIG as motorradig2 project
This commit is contained in:
parent
e5c726a0ea
commit
7b9f21e683
87 changed files with 19702 additions and 1 deletions
22
motorradig2/tests/CreatesApplication.php
Normal file
22
motorradig2/tests/CreatesApplication.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue