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

Robinvm's avatar

PHP Artisan serve doesnt work anymore

Hey, i did php composer.phar update and now it gives a error about my mail and it wont let me run the serve command anymore.

This is the error PS C:\xampp\htdocs> php artisan serve

[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Illuminate\Mail\MailServiceProvider' not found

PS C:\xampp\htdocs>

0 likes
2 replies
Naimo's avatar

try this

composer dump-autoload

shez1983's avatar

maybe try php artisan serve -vvv to see if it gives you a file that is throwing the error? maybe also do git checkout -- . to return your project to a previous stated? & then do composer install instead of update..

Please or to participate in this conversation.