저는 MVC에 익숙하지 않지만 Laravel을 처음 사용합니다. WAMP를 사용하여 Windows 8.1에 설치할 수있었습니다. 루트 URL (http://localhost/public/
)로 이동하여 Laravel 로고와 '도착했습니다.'라는 메시지가 나타납니다. 텍스트 줄.Laravel - 폐쇄로 이어지는 경로
이제 조금 놀아보고 싶습니다. the documentation은 아래 코드가 작동한다고 알려줍니다.
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', function()
{
return View::make('hello');
});
Route::get('users', function() {
return 'users!';
});
나는 내가 잘못하고있는 중이 야 무엇 404 얻을 대신 http://localhost/public/users
로 이동합니다 때 텍스트 users
을 얻을해야합니까? 경로 파일에
코드에 아무 문제가 없습니다 –
왜 404가 발생합니까? 변경 한 후에 다시 실행해야합니까? – Ciwan
http://laravel.com/docs/4.2/installation#pretty-urls에 따라 웹 서버를 설정 했습니까? – ceejayoz