We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8103b2 commit f53e976Copy full SHA for f53e976
docs/guide/basic.md
@@ -15,12 +15,17 @@ You can also specify a name for the file yourself by specifying it with the firs
15
For example, `php artisan make:operation qwerty`.
16
17
```php
18
+use App\Models\Article;
19
use DragonCode\LaravelDeployOperations\Operation;
20
21
return new class extends Operation {
22
public function __invoke(): void
23
{
- // any actions
24
+ Article::query()
25
+ ->lazyById(chunkSize: 100, column: 'id')
26
+ ->each->update(['is_active' => true]);
27
+
28
+ // and/or any actions...
29
}
30
};
31
```
0 commit comments