Skip to content

Conversation

@faisuc
Copy link

@faisuc faisuc commented Nov 17, 2025

When you call Action::run() with a scalar value (like an ID), it now automatically resolves it to an Eloquent model instance based on the method parameter type hints.

Example

class DeleteUser
{
    use AsAction;

    public function handle(User $user)
    {
        // $user is automatically a User model instance
    }
}

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