Laravel Blade render returns E_WARNING when I set deleteCachedView true
I’m using Blande::render() to generate content for my emails: $content = Blade::render(string: $body, data: $placeHolderData, deleteCachedView: true);
but I’m getting a lot of errors like this because I use deleteCachedView: true: unlink(/var/www/html/storage/framework/views/456c7288c355db70f44f3fdca12cd0cd.blade.php): No such file or directory
It works fine when I test it locally but once I moved it to production I’m getting these errors…
If I set deleteCachedView to false am I going to have issues with the cache or filling up: /var/www/html/storage/framework/views/ with data?
I see that is coming from BladeCompiler.php render() (part of Laravel code)
Laravel routes with multiple segments causes assets to be not found
If i have more than one segment on my routes it messes up my assets path