Initialize laravel app
This commit is contained in:
		
					parent
					
						
							
								44db6ce1d9
							
						
					
				
			
			
				commit
				
					
						a464ef4c0e
					
				
			
		
					 149 changed files with 10967 additions and 1464 deletions
				
			
		
							
								
								
									
										21
									
								
								tests/CreatesApplication.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								tests/CreatesApplication.php
									
										
									
									
									
										Normal 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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue