У меня есть приложение Laravel, над которым я работаю.хотя он отлично работает в моей локальной среде, когда я загружаю его на сервер моего колледжа и пытаюсь запустить его, я получаю эту ошибку:
Call to undefined function _() (View: /home/user/public_html/MeetHub/resources/views/auth/login.blade.php)
/home/user/public_html/MeetHub/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
edit: Tried composer update
и composer dump
edit2: теперь и серверная, и локальная среда имеют одинаковую версию php.Та же ошибка.