Search code examples
phplaravellaravel-5composer-phplaravel-artisan

PHP Fatal Error in compiled.php after composer update


I am using laravel 5.1 in my production server. After update my composer, queue listener command starts throwing error as

PHP Fatal error: Cannot redeclare class Illuminate\Support\Traits\Macroable in /var/www/<site-folder>/bootstrap/cache/compiled.php on line 6109

I couldn't find out the problem. My site is working fine, and other artisan commands are working fine. But I can't run my queue. Please suggest me some sollution


Solution

  • You should run Run

    php artisan clear-compiled
    php artisan optimize
    

    and make you sure you restart your queue.