Category Archives: Laravel

Laravel v5.0.20: Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()

When creating a new Laravel project and running  composer update  you might get the following error:

See also this issue on Github: https://github.com/laravel/framework/issues/8127 Solution: Delete the file vendor/compiled.php¬†. Done.  

Posted in Laravel | Comments Off on Laravel v5.0.20: Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()

Twig: Render String as Template

In case your template is not located in a file but in the database Twig allows you to render a string:

 

Posted in Laravel, PHP, Twig | Comments Off on Twig: Render String as Template