- [Flutter]Laravel에서 server.php 화일이 없는 에러 목차
Laravel을 실행시키니, 이런 에러가 나왔다
이것은 Project의 Root Directory에 server.php 화일이 없다는 내용이다
==========================
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// 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 !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
==================================
위의 코드를 server.php로 저장하여 추가하면 된다
또는 다른 Project가 있다면 그 화일을 복사하여 와도 된다
실행하니 또 다른 에러가
CMD 창에서 php package 관리 프로그램인 "composer update"를 실행
정상적으로 실행이 된다
즐거운 시간되세요