Skip to content

Commit 8e81489

Browse files
committed
Add back in server file.
1 parent 9e6613f commit 8e81489

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

server.php

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

0 commit comments

Comments
 (0)