src/Storage/EntryModel.php
protected function whereBatchId($query, EntryQueryOptions $options)
    {
        $query->when($options->batchId, function ($query, $batchId) {
            return $query->where('batch_id', $batchId);
        });

        return $this;
    }
protected function whereBatchId($query, EntryQueryOptions $options)
    {
        $query->when($options->batchId, function ($query, $batchId) {
            return $query->where('batch_id', $batchId);
        });

        return $this;
    }
protected function whereBatchId ( $ query , EntryQueryOptions $ options ) { $ query -> when ( $ options -> batchId , function ( $ query , $ batchId ) { return $ query -> where ( 'batch_id' , $ batchId ) ; } ) ; return $ this ; }
Scope the query for the given batch ID.

@param  \Illuminate\Database\Eloquent\Builder  $query
@param  \Laravel\Telescope\Storage\EntryQueryOptions  $options
@return $this
Scope the query for the given batch ID .