Nenhuma Descrição

server.php 560B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Laravel - A PHP Framework For Web Artisans
  4. *
  5. * @package Laravel
  6. * @author Taylor Otwell <taylorotwell@gmail.com>
  7. */
  8. $uri = urldecode(
  9. parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
  10. );
  11. // This file allows us to emulate Apache's "mod_rewrite" functionality from the
  12. // built-in PHP web server. This provides a convenient way to test a Laravel
  13. // application without having installed a "real" web server software here.
  14. if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri))
  15. {
  16. return false;
  17. }
  18. require_once __DIR__.'/public/index.php';