Skip to content

Conversation

@techmahedy
Copy link
Member

The doppar console commands did not support dependency injection in the handle method. Developers could not type-hint services or models directly in the method signature.

The handle method now supports automatic dependency injection. Services, models, or other resolvable classes can be type-hinted directly in the method signature:

public function handle(Tag $tag): int
{
    dd($tag->first()->toArray());

    return Command::SUCCESS;
}

This makes command classes cleaner and allows leveraging the container for automatic resolution of dependencies.

@techmahedy techmahedy merged commit 73c5fbd into doppar:1.x Jan 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant