Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea #36

Open
novln opened this issue Sep 17, 2018 · 0 comments
Open

Idea #36

novln opened this issue Sep 17, 2018 · 0 comments

Comments

@novln
Copy link
Collaborator

novln commented Sep 17, 2018

Some idea from Eloquent

Query Builder

$flights = App\Flight::where('active', 1)
               ->orderBy('name', 'desc')
               ->take(10)
               ->get();

Chuck

Flight::chunk(200, function ($flights) {
    foreach ($flights as $flight) {
        //
    }
});

Cursor

foreach (Flight::where('foo', 'bar')->cursor() as $flight) {
    //
}

Updates

App\Flight::where('active', 1)
          ->where('destination', 'San Diego')
          ->update(['delayed' => 1]);
@novln novln added the objective label Nov 8, 2018
@novln novln added the ideas label Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant