2017-04-20 65 views
-1

我在項目中遇到了lang文件的問題。事實證明,我爲不同視圖創建了lang文件,但其中一個特別是出現了錯誤,並沒有顯示任何錯誤的解釋。Laravel lang無法解釋的錯誤

Error Message

1的Symfony \元器件\調試\異常\ FatalErrorException ... /應用程序/郎/ EN/opportunities.php:6

0照亮\異常\處理程序handleShutdown < #unknown>:0

的Symfony \元器件\調試\異常\ FatalErrorException(E_UNKNOWN)

Lang PHP File

return array(

    'opportunities_' => 'Opportunities', 
    'products-and-services' => 'Products and Services', 
    'applied-opportunities' => 'Applied Opportunities', 
    'control-panel' => 'Control Panel', 
    'filters' => 'Filters', 
    'oppportunity' => 'Opportunity type', // <-- key has 3 p's in OP's screenshot 
    'select' => 'Select', 
    'radio' => 'Radio', 
    'festival' => 'Festival', 
    'venue' => 'Venue', 
    'country' => 'Country', 
    'select-country' => 'Select country', 
    'city' => 'City', 
    'select-city' => 'Select a city', 
    'music-genre' => 'Music Genre', 
    'date' => 'Date', 
    'filter' => 'Filter', 
    'application-sent-message' => 'Your application has been sent! If you want to see it, go to your list of applications.', 
    'uncompleted-profile-message' => 'Remember to complete your band profile. It will be important in the reviewing process.', 
    'see-profile' => 'See Profile', 
    'about-the-oppotunity' => 'About the Opportunity', // <-- key missing r in OP's screenshot 
    'download-the-bases' => 'Download the bases', 
    'deadline' => 'Deadline', 
    'apply' => 'Apply', 
    'more-information' => 'More Information', 
    'download-file' => 'Download File', 
    'gallery' => 'Gallery', 
    'get-coupon-code' => 'Get coupon code', 
    'exchange-code' => 'Exchange Code', 

}; // <!-- erroneous curly bracket to close the array in OP's screenshot 
+0

我插入了您的鏈接圖片,但代碼應顯示爲文本。 – mickmackusa

+0

你能提供這個錯誤的日誌嗎?你如何在刀片文件中叫郎? –

+0

感謝您的意見球員,我的陣列關閉有錯誤:) –

回答

0

您在最後一行關閉陣列},應該是)。 ;)

+0

非常感謝!它工作完美! :) –