$file->increment()
Increment a given field value
$file->increment(string $field, int $by = 1, int $max = null): Kirby\Cms\File
Parameters
Name | Type | Default | Description |
---|---|---|---|
$field |
string |
– | |
$by |
int |
1 |
|
$max |
int |
null |
Return type
Inherited from
Kirby\Cms\ModelWithContent