I have a Laravel 5.4 app that works fine locally. When I try to host it on my production server, I cannot perform the migration. Here is the error part:
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 running php artisan --help and I get the same error.
source share