ProcessesQuery
        
        Console Command Trait that provides the "processQuery($query, $callback, $chunkSize, $limit)"
helper method to cleanly handle processing a large number of records in the console.
    
    
 trait Winter\Storm\Console\Traits\ProcessesQueryMethods
            
            
            
                public
            
                        
            processQuery (Winter\Storm\Database\Builder $query, callable $callback, integer $chunkSize = 100, $limit = null)
                            : void
                    
        
        Processes the provided query by rendering a progress bar, chunking the query by the provided chunkSize, running the callback on each record and limiting number of records processed to the provided limit
Parameters
                | Property | Type | Description | 
|---|---|---|
| $query | Winter\Storm\Database\Builder | Winter\Storm\Database\Builder | 
| $callback | callable | callable | 
| $chunkSize | integer | integer | 
| $limit | mixed | mixed | 
Returns
            void
                
            
            ← Previous page
            Winter\Storm\Console\Traits\HandlesCleanup
        
                
            Next page →
            Winter\Storm\Console\Traits\ProvidesAutocompletion
        
    
    Copyright © 2025 Winter CMS