I have a Laravel 5.4 app that works fine locally. In trying to put it on my production server, I cannot run migrations. Here is part of the error:
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Events\Dispatcher::dispatch() in /path/to/app/vendor/laravel/framework/src/Illuminate/Console/Application.php:56
Any help is greatly appreciated.
Edit
I just tried to run php artisan --help
and, I get the same error.
Delete all files from /bootstrap/cache/
and run these commands
php artisan cache:clear
php artisan view:clear
It should fix your problem
I think your composer is not updated. Try uninstalling the composer and then re-installing it. Or try with updating the composer.phar. Probably there is version issue between the laravel you are using.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With