Laravel - Artisan Console - Events
Artisan dispatches three events when running commands: Illuminate\Console\Events\ArtisanStarting
, Illuminate\Console\Events\CommandStarting
, and Illuminate\Console\Events\CommandFinished
. The ArtisanStarting
event is dispatched immediately when Artisan starts running. Next, the CommandStarting
event is dispatched immediately before a command runs. Finally, the CommandFinished
event is dispatched once a command finishes executing.