Laravel-Blade icon indicating copy to clipboard operation
Laravel-Blade copied to clipboard

Undefined variable referrs to Cache file

Open asolopovas opened this issue 9 years ago • 1 comments
trafficstars

When there is an undifined variable in blade file it throws an error that is director to cache file rather then the blade file itself. Here is example

Notice: Undefined variable: post in /app/cache/5952d10558fadf03e7e98e30ca3073c9 on line 19

asolopovas avatar Jan 06 '16 18:01 asolopovas

Ok my problem got resolved. Everything that was needed is Symfony\Debug package and Debug::Enabled in order to make it work. Otherwise it doesn't display the file where the error occured. For example Illuminate\View\Engines\PhpEngine relies on Symfony\Component\Debug\Exception\FatalThrowableError. and its available in Symfony\Debug

asolopovas avatar Jan 06 '16 22:01 asolopovas