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

ovvessem's avatar

Script php artisan clear-compiled returned with an error

Hi,

I am trying to composer update my fresh Laravel 4.3 install of 2 days ago. After generating the autoload files I receive the following error message:

"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Call to undefined method Illuminate\Foundation\Application::afterResolvingAny()","file":"../laravel43\/vendor\/laravel\/framework\/src\/Illuminate\/Validation\/ValidationServiceProvider.php","line":29}}Script php artisan clear-compiled handling the post-update-cmd event returned with an error

Anyone else experiencing this error and better how can I solve/workaround it?

0 likes
4 replies
joyparkma's avatar
Level 1

I got same error. After removing 'Illuminate\Validation\ValidationServiceProvider' from config/app.php, and then run "php artisan dump-autoload", and then add the service provider back, it should work.

theller5567's avatar

I just tried that and get "Could not open input file: artisian" after running php artisian dump-autoload. Any suggestions?

Please or to participate in this conversation.