Laravel 没有解释的 lang 错误
Laravel lang error with no explanation
我在使用项目中的 lang 文件时遇到问题。事实证明,我为不同的视图创建了 lang 文件,但特别是一个出现错误,并且没有显示任何错误解释。
Error Message:
1 Symfony\Component\Debug\Exception\FatalErrorException
.../app/lang/en/opportunities.php:6
0 Illuminate\Exception\Handler handleShutdown <#unknown>:0
Symfony \ Component \ Debug \ Exception \ 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
您正在关闭最后一行 }
的数组,应该是 )
。 ;)
我在使用项目中的 lang 文件时遇到问题。事实证明,我为不同的视图创建了 lang 文件,但特别是一个出现错误,并且没有显示任何错误解释。
Error Message:
1 Symfony\Component\Debug\Exception\FatalErrorException .../app/lang/en/opportunities.php:6
0 Illuminate\Exception\Handler handleShutdown <#unknown>:0
Symfony \ Component \ Debug \ Exception \ 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
您正在关闭最后一行 }
的数组,应该是 )
。 ;)