Rule
class Rule (View source)
Traits
| Macroable | 
Properties
| static protected array | $macros | The registered string macros. | from Macroable | 
Methods
| static void |  macro(string $name, callable $macro)  Register a custom macro.  |  from Macroable | 
| static bool |  hasMacro(string $name)  Checks if macro is registered.  |  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 a exists constraint builder instance.  |  |
| static In |  in(array|string $values)  Get an in constraint builder instance.  |  |
| static NotIn |  notIn(array|string $values)  Get a not_in constraint builder instance.  |  |
| static Unique |  unique(string $table, string $column = 'NULL')  Get a unique constraint builder instance.  |  
Details
static void macro(string $name, callable $macro)
Register a custom macro.
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 a exists constraint builder instance.
static In in(array|string $values)
Get an in constraint builder instance.
static NotIn notIn(array|string $values)
Get a not_in constraint builder instance.
static Unique unique(string $table, string $column = 'NULL')
Get a unique constraint builder instance.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/5.5/Illuminate/Validation/Rule.html