home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

CreatesApplication.php (375B)


      1 <?php
      2 
      3 namespace Tests;
      4 
      5 use Illuminate\Contracts\Console\Kernel;
      6 use Illuminate\Foundation\Application;
      7 
      8 trait 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 }