Няма описание

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Create The Application
  5. |--------------------------------------------------------------------------
  6. |
  7. | The first thing we will do is create a new Laravel application instance
  8. | which serves as the "glue" for all the components of Laravel, and is
  9. | the IoC container for the system binding all of the various parts.
  10. |
  11. */
  12. $app = new Illuminate\Foundation\Application;
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Detect The Application Environment
  16. |--------------------------------------------------------------------------
  17. |
  18. | Laravel takes a dead simple approach to your application environments
  19. | so you can just specify a machine name for the host that matches a
  20. | given environment, then we will automatically detect it for you.
  21. |
  22. */
  23. $env = $app->detectEnvironment(array(
  24. 'local' => array(gethostname(), 'RPV20111.rrp.campus', 'homestead'),
  25. 'production' => array('*.com', '*.edu', '*.org'),
  26. ));
  27. /*
  28. $env = $app->detectEnvironment(array(
  29. 'local' => array('RPV20111.rrp.campus', 'homestead'),
  30. 'production' => array('*.com', '*.edu', '*.org'),
  31. ));
  32. */
  33. /*
  34. |--------------------------------------------------------------------------
  35. | Bind Paths
  36. |--------------------------------------------------------------------------
  37. |
  38. | Here we are binding the paths configured in paths.php to the app. You
  39. | should not be changing these here. If you need to change these you
  40. | may do so within the paths.php file and they will be bound here.
  41. |
  42. */
  43. $app->bindInstallPaths(require __DIR__ . '/paths.php');
  44. /*
  45. |--------------------------------------------------------------------------
  46. | Load The Application
  47. |--------------------------------------------------------------------------
  48. |
  49. | Here we will load this Illuminate application. We will keep this in a
  50. | separate location so we can isolate the creation of an application
  51. | from the actual running of the application with a given request.
  52. |
  53. */
  54. $framework = $app['path.base'] .
  55. '/vendor/laravel/framework/src';
  56. require $framework . '/Illuminate/Foundation/start.php';
  57. /*
  58. |--------------------------------------------------------------------------
  59. | Return The Application
  60. |--------------------------------------------------------------------------
  61. |
  62. | This script returns the application instance. The instance is given to
  63. | the calling script so we can separate the building of the instances
  64. | from the actual running of the application and sending responses.
  65. |
  66. */
  67. return $app;