$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 modifies the existing $database object it is applied to and returns it again.