Eloquent::each PHP Method

each() public static method

Execute a callback over each item while chunking.
public static each ( callable $callback, integer $count = 1000 ) : boolean
$callback callable
$count integer
return boolean
        public static function each($callback, $count = 1000)
        {
            return \Illuminate\Database\Eloquent\Builder::each($callback, $count);
        }
Eloquent