SHARE
TWEET

Untitled

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