index.php 628 B

1234567891011121314151617181920212223
  1. <?php
  2. // 设置PHP默认时区为上海时间
  3. date_default_timezone_set('Asia/Shanghai');
  4. use Illuminate\Foundation\Application;
  5. use Illuminate\Http\Request;
  6. define('LARAVEL_START', microtime(true));
  7. // Determine if the application is in maintenance mode...
  8. if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
  9. require $maintenance;
  10. }
  11. // Register the Composer autoloader...
  12. require __DIR__.'/../vendor/autoload.php';
  13. // Bootstrap Laravel and handle the request...
  14. /** @var Application $app */
  15. $app = require_once __DIR__.'/../bootstrap/app.php';
  16. $app->handleRequest(Request::capture());