Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Prabakaran's avatar

PHP Fatal Error in compiled.php after composer update

After update my composer, queue listener starts throwing error as

PHP Fatal error: Cannot redeclare class Illuminate\Support\Traits\Macroable in /var/www/qoruz.com/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

0 likes
4 replies
ftrillo's avatar

Try erasing the cache. php artisan cache:clear.

There could be something outdated in there, since you updated everything.

Prabakaran's avatar

I did as you mentioned above. Still no luck :(

Cronix's avatar

did you try composer dump-autoload?

Please or to participate in this conversation.