source: tests/CreatesApplication.php

main
Last change on this file was c454c0f, checked in by bube-ristovska <ristovska725@…>, 11 months ago

First commit

  • Property mode set to 100644
File size: 375 bytes
Line 
1<?php
2
3namespace Tests;
4
5use Illuminate\Contracts\Console\Kernel;
6use Illuminate\Foundation\Application;
7
8trait CreatesApplication
9{
10 /**
11 * Creates the application.
12 */
13 public function createApplication(): Application
14 {
15 $app = require __DIR__.'/../bootstrap/app.php';
16
17 $app->make(Kernel::class)->bootstrap();
18
19 return $app;
20 }
21}
Note: See TracBrowser for help on using the repository browser.