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 b6d55d5 commit b0751e4Copy full SHA for b0751e4
README.md
@@ -42,15 +42,17 @@ Create your first operation using `php artisan make:operation` console command a
42
perform.
43
44
```php
45
+use App\Models\Article;
46
use DragonCode\LaravelDeployOperations\Operation;
47
48
return new class extends Operation {
49
public function __invoke(): void
50
{
- \App\Models\Course::lazyById(chunkSize: 100, column: 'id')
51
+ Article::query()
52
+ ->lazyById(chunkSize: 100, column: 'id')
53
->each->update(['is_active' => true]);
54
- // any actions...
55
+ // and/or any actions...
56
}
57
};
58
```
0 commit comments