| 
				
			 | 
			
			
				@@ -0,0 +1,58 @@ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1
			 | 
			
			
				+<?php 
			 | 
		
	
		
			
			| 
				
			 | 
			
				2
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				3
			 | 
			
			
				+/** 
			 | 
		
	
		
			
			| 
				
			 | 
			
				4
			 | 
			
			
				+ * Laravel - A PHP Framework For Web Artisans 
			 | 
		
	
		
			
			| 
				
			 | 
			
				5
			 | 
			
			
				+ * 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6
			 | 
			
			
				+ * @package  Laravel 
			 | 
		
	
		
			
			| 
				
			 | 
			
				7
			 | 
			
			
				+ * @author   Taylor Otwell <taylor@laravel.com> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8
			 | 
			
			
				+ */ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				9
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				10
			 | 
			
			
				+/* 
			 | 
		
	
		
			
			| 
				
			 | 
			
				11
			 | 
			
			
				+|-------------------------------------------------------------------------- 
			 | 
		
	
		
			
			| 
				
			 | 
			
				12
			 | 
			
			
				+| Register The Auto Loader 
			 | 
		
	
		
			
			| 
				
			 | 
			
				13
			 | 
			
			
				+|-------------------------------------------------------------------------- 
			 | 
		
	
		
			
			| 
				
			 | 
			
				14
			 | 
			
			
				+| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				15
			 | 
			
			
				+| Composer provides a convenient, automatically generated class loader for 
			 | 
		
	
		
			
			| 
				
			 | 
			
				16
			 | 
			
			
				+| our application. We just need to utilize it! We'll simply require it 
			 | 
		
	
		
			
			| 
				
			 | 
			
				17
			 | 
			
			
				+| into the script here so that we don't have to worry about manual 
			 | 
		
	
		
			
			| 
				
			 | 
			
				18
			 | 
			
			
				+| loading any of our classes later on. It feels great to relax. 
			 | 
		
	
		
			
			| 
				
			 | 
			
				19
			 | 
			
			
				+| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				20
			 | 
			
			
				+*/ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				21
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				22
			 | 
			
			
				+require __DIR__.'/../bootstrap/autoload.php'; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				23
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				24
			 | 
			
			
				+/* 
			 | 
		
	
		
			
			| 
				
			 | 
			
				25
			 | 
			
			
				+|-------------------------------------------------------------------------- 
			 | 
		
	
		
			
			| 
				
			 | 
			
				26
			 | 
			
			
				+| Turn On The Lights 
			 | 
		
	
		
			
			| 
				
			 | 
			
				27
			 | 
			
			
				+|-------------------------------------------------------------------------- 
			 | 
		
	
		
			
			| 
				
			 | 
			
				28
			 | 
			
			
				+| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				29
			 | 
			
			
				+| We need to illuminate PHP development, so let us turn on the lights. 
			 | 
		
	
		
			
			| 
				
			 | 
			
				30
			 | 
			
			
				+| This bootstraps the framework and gets it ready for use, then it 
			 | 
		
	
		
			
			| 
				
			 | 
			
				31
			 | 
			
			
				+| will load up this application so that we can run it and send 
			 | 
		
	
		
			
			| 
				
			 | 
			
				32
			 | 
			
			
				+| the responses back to the browser and delight our users. 
			 | 
		
	
		
			
			| 
				
			 | 
			
				33
			 | 
			
			
				+| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				34
			 | 
			
			
				+*/ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				35
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				36
			 | 
			
			
				+$app = require_once __DIR__.'/../bootstrap/app.php'; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				37
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				38
			 | 
			
			
				+/* 
			 | 
		
	
		
			
			| 
				
			 | 
			
				39
			 | 
			
			
				+|-------------------------------------------------------------------------- 
			 | 
		
	
		
			
			| 
				
			 | 
			
				40
			 | 
			
			
				+| Run The Application 
			 | 
		
	
		
			
			| 
				
			 | 
			
				41
			 | 
			
			
				+|-------------------------------------------------------------------------- 
			 | 
		
	
		
			
			| 
				
			 | 
			
				42
			 | 
			
			
				+| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				43
			 | 
			
			
				+| Once we have the application, we can handle the incoming request 
			 | 
		
	
		
			
			| 
				
			 | 
			
				44
			 | 
			
			
				+| through the kernel, and send the associated response back to 
			 | 
		
	
		
			
			| 
				
			 | 
			
				45
			 | 
			
			
				+| the client's browser allowing them to enjoy the creative 
			 | 
		
	
		
			
			| 
				
			 | 
			
				46
			 | 
			
			
				+| and wonderful application we have prepared for them. 
			 | 
		
	
		
			
			| 
				
			 | 
			
				47
			 | 
			
			
				+| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				48
			 | 
			
			
				+*/ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				49
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				50
			 | 
			
			
				+$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				51
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				52
			 | 
			
			
				+$response = $kernel->handle( 
			 | 
		
	
		
			
			| 
				
			 | 
			
				53
			 | 
			
			
				+    $request = Illuminate\Http\Request::capture() 
			 | 
		
	
		
			
			| 
				
			 | 
			
				54
			 | 
			
			
				+); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				55
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				56
			 | 
			
			
				+$response->send(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				57
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				58
			 | 
			
			
				+$kernel->terminate($request, $response); 
			 |