Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive() on dev-laravel-5 #539

Open thestudio4 opened 8 years ago

thestudio4 commented 8 years ago

running a composer update resulted in the following error:

[RuntimeException] Error Output: PHP Fatal error: Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive() in /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Support/F acades/Facade.php on line 213 PHP Stack trace: PHP 1. {main}() /home/vagrant/Code/project_name/artisan:0 PHP 2. Illuminate\Foundation\Console\Kernel->handle() /home/vagrant/Code/project_name/artisan:36 PHP 3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:92 PHP 4. Illuminate\Foundation\Application->bootstrapWith() /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:195 PHP 5. Illuminate\Foundation\Bootstrap\BootProviders->bootstrap() /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:183 PHP 6. Illuminate\Foundation\Application->boot() /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:15 PHP 7. array_walk() /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:686 PHP 8. Illuminate\Foundation\Application->Illuminate\Foundation{closure}() /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:686 PHP 9. Illuminate\Foundation\Application->bootProvider() /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:685 PHP 10. Illuminate\Container\Container->call() /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:703 PHP 11. call_user_func_array:{/home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Container/Container.php:526}() /home/vagrant/Code/project_name/vendor/laravel/framework/src/ Illuminate/Container/Container.php:526 PHP 12. Zizaco\Entrust\EntrustServiceProvider->boot() /home/vagrant/Code/project_name/vendor/laravel/framework/src/Illuminate/Container/Container.php:526 PHP 13. Zizaco\Entrust\EntrustServiceProvider->bladeDirectives() /home/vagrant/Code/project_name/vendor/zizaco/entrust/src/Entrust/EntrustServiceProvider.php:38 PHP 14. Illuminate\Support\Facades\Blade::directive() /home/vagrant/Code/project_name/vendor/zizaco/entrust/src/Entrust/EntrustServiceProvider.php:65 PHP 15. Illuminate\Support\Facades\Facade::__callStatic() /home/vagrant/Code/project_name/vendor/zizaco/entrust/src/Entrust/EntrustServiceProvider.php:65

Reverting back to commit be28aa634c44551ae5187894c903094a8ce8baee solved the problem.

jqr108 commented 8 years ago

Addressed in an earlier issue: https://github.com/Zizaco/entrust/issues/526

Downgrading to "zizaco/entrust": "1.4.1" should take care of it.