Files
alrahma_sunday_school_api/app/Models/FamilyCommPref.php
T
root e13df69885
API CI/CD / Validate (composer + pint) (push) Successful in 3m6s
API CI/CD / Test (PHPUnit) (push) Failing after 4m53s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 59s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
fix unittests issues
2026-07-07 20:56:32 -04:00

27 lines
627 B
PHP

<?php
namespace App\Models;
class FamilyCommPref extends BaseModel
{
protected $table = 'family_comm_prefs';
// legacy model didn't specify timestamps
public $timestamps = true;
protected $fillable = ['family_id', 'category', 'via_email', 'via_sms', 'cc_all_guardians', 'created_at', 'updated_at'];
protected $casts = [
'family_id' => 'integer',
'via_email' => 'boolean',
'via_sms' => 'boolean',
'cc_all_guardians' => 'boolean',
];
// Optional relationship
public function family()
{
return $this->belongsTo(Family::class, 'family_id');
}
}