each() public method

Execute a callback over each item while chunking.
public each ( callable $callback, integer $count = 1000 ) : boolean
$callback callable
$count integer
return boolean
Example #1
0
 /**
  * Execute a callback over each item while chunking.
  *
  * @param callable $callback
  * @param int $count
  * @return bool 
  * @static 
  */
 public static function each($callback, $count = 1000)
 {
     return \Illuminate\Database\Eloquent\Builder::each($callback, $count);
 }