Laravel Return 1 jako prawda
protected $casts = [
'bool_val' => 'boolean',
];
Beautiful Bird
protected $casts = [
'bool_val' => 'boolean',
];
return $value == 1 ? true : false;