You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive the following error when attempting to access /health/panel:
Method Illuminate\View\View::__toString() must not throw an exception, caught ErrorException: Undefined variable: health (View: /mnt/c/Users/{removed}/Desktop/dev/laravel/resources/views/vendor/pragmarx/health/default/panel.blade.php)
This is the controller code that's failing
/**
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
* @throws \Exception
*/
public function panel()
{
$this->healthService->setAction('panel');
return response((string) view(config('health.views.panel'))->with('laravel', ['health' => config('health')]));
}
This is the view code that fails in panel.blade.php
PHP version: 7.2.11
Laravel version: 5.7.*
I receive the following error when attempting to access /health/panel:
This is the controller code that's failing
This is the view code that fails in
panel.blade.php
When I
dd(config('health'));
it returns the expected json object, but for some reason$health
is undefined.The text was updated successfully, but these errors were encountered: