2017-03-01 1 views
-1

모든 경로를 번역하려고합니다. mcamara/laravel-localization 패키지를 사용하고 있습니다. 내 경로는 다음과 같습니다Laravel 구문 오류, 예기치 않은 'routes'(T_STRING)

// Registration Routes... 
Route::get(LaravelLocalization::transRoute('routes.register_link')/{plan?}, ['as' => 'auth.register', 'uses' => 'Auth\[email protected]']); 
Route::post(LaravelLocalization::transRoute('routes.register_link'), ['as' => 'auth.register', 'uses' => 'Auth\[email protected]']); 

하지만 eror 받고 있어요 :

구문 오류, 예기치 않은 '{'

무슨 잘못? 도움을 주셔서 감사합니다!

+0

가능한 복제; 어떻게 해결할 수 있습니까?] (http://stackoverflow.com/questions/18050071/php-parse-syntax-errors-and-how-to-solve-them) –

답변

0

코드 미리보기에서 색상에 이상이 있음을 볼 수 있습니다. 당신은

0

후 추가 ' 있습니다 ... 제거해야 할 첫 번째 줄에 틱 (')를 가질 수

Route::get(LaravelLocalization::transRoute('routes.register_link')/{plan?}', ['as' => 'auth.register', 'uses' => 'Auth\[email protected]']); 
[PHP 구문 분석/구문 오류의
+0

오, 내 잘못. 이제 문법 오류가 발생합니다. 예기치 않은 '{', 그러나 모든 것이 잘 어울립니다. –

관련 문제