1 | <?php |
||
15 | class Boolean extends Field |
||
16 | { |
||
17 | /** |
||
18 | * @var string The table associated with the model. |
||
19 | */ |
||
20 | public $table = 'field_boolean'; |
||
21 | |||
22 | /** |
||
23 | * @var array The attributes that should be cast to native types. |
||
24 | */ |
||
25 | protected $casts = [ |
||
26 | 'value' => 'boolean', |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * Checks if a field is valid |
||
31 | * |
||
32 | * @param mixed $value The value to validate |
||
33 | * @return bool |
||
34 | */ |
||
35 | 27 | protected function isValid($value) |
|
41 | } |
||
42 |