Your IP : 216.73.216.91


Current Path : /var/www/html/LLCF-APP/app/Models/
Upload File :
Current File : /var/www/html/LLCF-APP/app/Models/Donor.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class Donor extends Model
{
    protected $table = 'donor';

    public $timestamps = false;

    const CREATED_AT = 'created_on';
    const UPDATED_AT = 'updated_on';

    protected $fillable = [
        'donor_name',
        'donor_whatsapp',
        'donor_ref_name',
        'donor_whatsapp_sec',
        'created_on',
        'updated_on',
    ];

    public function students(): HasMany
    {
        return $this->hasMany(Student::class, 'donor_id');
    }
}