$database->fail()
Sets the exception mode
$database->fail(bool $fail = true): Kirby\Database\Database
Parameters
Name | Type | Default |
---|---|---|
$fail | bool |
true |
Return type
This method does not modify the existing $database
object but returns a new object with the changes applied. Learn more →