34 Star 72 Fork 12

zfeig / laravel-blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
server.php 519 Bytes
一键复制 编辑 原始数据 按行查看 历史
zfeig 提交于 2015-02-10 11:13 . laravel-blog
<?php
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$uri = urldecode($uri);
$paths = require __DIR__.'/bootstrap/paths.php';
$requested = $paths['public'].$uri;
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' and file_exists($requested))
{
return false;
}
require_once $paths['public'].'/index.php';
PHP
1
https://gitee.com/zfeig/laravel-blog.git
git@gitee.com:zfeig/laravel-blog.git
zfeig
laravel-blog
laravel-blog
master

搜索帮助