Базовая версия сервера API с авторизацией по протоколу OAuth2

This commit is contained in:
Andrey Pokidov committed 2020-02-27 13:11:52 +07:00
commit 2b167b585f
98 files changed
+9984

No files matched your search

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