Category: Laravel, Laravel

This article explains the basic concepts of the command bus. The command is passed to the command bus. The command bus will pass the command to a handler.

The interface of the command bus might look like this: interface CommandBusInterface { public function subscribe(string $commandClassName, string $handlerClassName); public function dispatch(CommandInterface $command); }

By switching to this extended command bus implementation, suddenly all commands can be handled in a better way.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners