Jan 10, 2016
0
Level 1
php artisan clear-compiled error
Hi,
I have just started working on a project again for the first time in 6 months and it was all going very well until I did a composer update and I received the following error:
vagrant@default:/vagrant$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
> php artisan clear-compiled
PHP Fatal error: Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive() in /vagrant/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 213
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive()
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive() in /vagrant/vendor/laravel/framework/src/Illuminate/Suppo
rt/Facades/Facade.php on line 213
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
I then tried running php artisan clear-compiled and got this:
vagrant@default:/vagrant$ php artisan clear-compiled
PHP Fatal error: Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive() in /vagrant/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 213
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive()
I am running the following:
vagrant@default:/vagrant$ php --version
PHP 5.6.17-1+deb.sury.org~trusty+2 (cli)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
I have read many questions about this which all seem to have been resolved by deleting a file called either compiled.phpor compile.php or something in both the storage and vendor folders, however, I do not have these files in my system.
What can I do?
Please or to participate in this conversation.