Skip to content

Class: Errors

Saqib Razzaq edited this page Mar 17, 2019 · 3 revisions

Errors is a tiny class for globally managing errors in BriskLimbs.

add

Add a new error message

Parameters
[string] $message

Error message to be added

Example
$errors = new Errors();
$errors->add('Failed to login');

collect

Fetch all added errors

Returns

An array of all added messages

Example
$errors->collect()
Clone this wiki locally