Laravel Lang错误,没有解释



我在项目中对lang文件遇到麻烦。事实证明,我为不同的视图创建了lang文件,但是特别是遇到错误,并且没有显示任何错误的解释。

错误消息:

1 symfony component debug exception fatalerrorexception .../app/lang/en/opploy.php:6

0照明异常 handler handleshutdown< #unknown>:0

symfony component debug exception fatalerrorexception(e_unknown(

lang php文件:

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

您正在用最后一行的}关闭数组,应为)。;(

最新更新