2015-02-03 10 views
0

이전에 Laravel 4와 함께 작업했으며 전혀 문제가 없었습니다. 나는 아무 것도 잘못하지 않았지만 도와주세요.Laravel 경로가 작동하지 않습니다.

Route::get('redirect', '[email protected]'); 

그리고 컨트롤러 :

나는 경로가

<?php 

class TestController extends \BaseController { 

    public function newRedirect() 
    { 
     echo "Yes!"; 
    } 

} 

을하지만 수 :

잘못 무엇
Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException 

?

+0

8001 당신 다시 방문 했니? 정확하게. – danhardman

+0

http : // localhost : 8000/redirect - 무슨 뜻입니까? "원할 경우 앞에 붙인 파일 구조를 제거 할 수 있습니다" – RobinKuiper

+0

routes.php 파일에 해당 경로 정의가 있습니까? 컨트롤러가 자동으로 올바르게로드 되었습니까? 경로가 올바르게 나열되었는지 보려면'php artisan routes'를 실행 해 보셨습니까? –

답변

-1

라는 이름의 경로, 더 나은, PHP는 장인과 다른 포트에서 실행하는

Route::get('/redirect', array('as' => 'redirect', 'uses' => '[email protected]')); 
+0

다 시도해 보았습니다. – RobinKuiper

+0

@RobinKuiper'php composer dump-autoload'를하고'return echo '로 Newredirect 함수를 변경하면 어떻게 될까요? ";'? – Wistar

+0

"PHP ARTISAN dump-autoload"라는 뜻인가요? 이미 생각한대로 "최적화 된 클래스 로더 생성"을 제공합니다. 복귀를 시도했지만 아무런 차이가 없었습니다. – RobinKuiper

0

시도를

Route::get('/redirect', '[email protected]'); 

을 시도하거나 제공 --port = URL이 무엇

관련 문제