Skip to content
Discussion options

You must be logged in to vote

Have you tried this?

use Illuminate\Console\Events\CommandFinished;
use Illuminate\Support\Facades\Event;

Event::listen(function (CommandFinished $event) {
    if ($event->command === 'optimize') {
        //
    }
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@localusercamp
Comment options

Answer selected by localusercamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants