123456789101112131415161718192021222324252627282930 |
- <?php
-
- namespace App\Model\User;
-
- use Illuminate\Database\Eloquent\Model;
-
- class PetugasUnitDonorDarahUdds extends Model
- {
-
-
- protected $table = 'petugas_unit_donor_darah_udds';
- protected $fillable = [
- 'nama',
- 'unit_donor_darah_id',
- 'user_login_id'
- ];
-
-
-
- public function user()
- {
-
- return $this->belongsTo('App\User', 'user_login_id', 'id');
- }
-
- public function udd()
- {
- return $this->belongsTo('App\Model\Master\MasterUdd', 'unit_donor_darah_id', 'id');
- }
- }
|