Trait ‘Illuminate\Foundation\Bus\DispatchesCommands’ not found


Deprecated doesn’t mean that it’s been removed, just that it will be at some point. They do mention a fix for it in the documentation:

The Illuminate\Foundation\Bus\DispatchesCommands trait has been deprecated and renamed to Illuminate\Foundation\Bus\DispatchesJobs.

So just replace this:

With this:

There should not be any worries about this breaking in the future as the DispatchesCommands trait was including the DispatchesJobs trait which was also present in another form in 5.x