Purpose of Builder query

Posted 1 year ago by oroalej

Hi,

Just want to ask what is the purpose of Builder in

$model::when(condition, function(Builder $query){
    $query->someCondition;
})->get();

Because sometimes I get an error using it and by removing it fixed the issue.

Please sign in or create an account to participate in this conversation.