Rule
class Rule (View source)
Traits
Properties
static protected array | $macros | The registered string macros. |
from Macroable |
Methods
static void
mixin(object $mixin, bool $replace = true)
Mix another object into the class.
from
Macroable
static mixed
__callStatic(string $method, array $parameters)
Dynamically handle calls to the class.
from
Macroable
mixed
__call(string $method, array $parameters)
Dynamically handle calls to the class.
from
Macroable
static Dimensions
dimensions(array $constraints = [])
Get a dimensions constraint builder instance.
static Exists
exists(string $table, string $column = 'NULL')
Get an exists constraint builder instance.
static RequiredIf
requiredIf(callable|bool $callback)
Get a required_if constraint builder instance.
Details
static void
macro(string $name, object|callable $macro)
Register a custom macro.
static void
mixin(object $mixin, bool $replace = true)
Mix another object into the class.
static bool
hasMacro(string $name)
Checks if macro is registered.
static mixed
__callStatic(string $method, array $parameters)
Dynamically handle calls to the class.
mixed
__call(string $method, array $parameters)
Dynamically handle calls to the class.
static Dimensions
dimensions(array $constraints = [])
Get a dimensions constraint builder instance.
static Exists
exists(string $table, string $column = 'NULL')
Get an exists constraint builder instance.
static RequiredIf
requiredIf(callable|bool $callback)
Get a required_if constraint builder instance.
static Unique
unique(string $table, string $column = 'NULL')
Get a unique constraint builder instance.