foreach db:table('user') as $user laravel code example
Example: laravel chunk select
DB::table('users')->chunk(100, function($users)
{
foreach ($users as $user)
{
//
}
});
DB::table('users')->chunk(100, function($users)
{
foreach ($users as $user)
{
//
}
});