"Laravel/server.php"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
2번째 줄: 2번째 줄:
;laravel/server.php
;laravel/server.php


<source lang='php'>
<syntaxhighlight lang='php'>
<?php
<?php


13번째 줄: 13번째 줄:
}
}
require_once __DIR__.'/public/index.php';
require_once __DIR__.'/public/index.php';
</source>
</syntaxhighlight>


==참고==
==참고==

2020년 11월 2일 (월) 02:56 기준 최신판

1 개요[ | ]

laravel/server.php
<?php

$uri = urldecode(
    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);

if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
    return false;
}
require_once __DIR__.'/public/index.php';

2 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}