Skip to content

Can't use in when #32

@kenzouno1

Description

@kenzouno1

I'm try use search in when but this throw exception BadMethodCallException .

   $campaign = Campaign::when($search, function ($q, $search) {
        $q->search($search);
    })->get();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions