\duncan3dc\LaravelConditionHandler

Summary

Methods
Properties
Constants
add()
check()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$conditions
N/A

Properties

$conditions

$conditions : array

Type

array — The conditions registered.

Methods

add()

add(string  $name, callable  $handler) : $this

Register an custom conditional directive.

Parameters

string $name
callable $handler

Returns

$this

check()

check(string  $name, mixed  $params) : boolean

Call a registered conditional directive.

Parameters

string $name
mixed $params

Returns

boolean