Skip to content

Kirby 5.0.4

$query->insert()

Fires an insert query

$query->insert(mixed $values = null): mixed

Parameters

Name Type Default Description
$values mixed null You can pass values here or set them with ->values() before

Return type

mixed

Returns the last inserted id on success or false.

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

Parent class

Kirby\Database\Query