<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// If the request matches an existing file or directory in /public, serve it
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
// Otherwise, forward the request to public/index.php (Laravel's front controller)
require_once __DIR__.'/public/index.php';