$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.