Skip to content

Kirby 5.2.0

$database->lastId()

Returns the last id if available

$database->lastId(): int|null

Return types

intornull

This method modifies the existing $database object it is applied to and returns it again.

Parent class

Kirby\Database\Database