Laravel-Blade
Laravel-Blade copied to clipboard
Undefined variable referrs to Cache file
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
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