40 lines
		
	
	
		
			773 B
		
	
	
	
		
			PHP
		
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			773 B
		
	
	
	
		
			PHP
		
	
	
| <?php
 | |
| 
 | |
| namespace App\Models;
 | |
| 
 | |
| use Illuminate\Database\Eloquent\Factories\HasFactory;
 | |
| use Illuminate\Database\Eloquent\Model;
 | |
| 
 | |
| class Verifikasi extends Model
 | |
| {
 | |
|     use HasFactory;
 | |
| 
 | |
|     protected $table = 'Verifikasi';
 | |
| 
 | |
|     protected $primaryKey = 'VerifikasiId';
 | |
| 
 | |
|     protected $fillable = [
 | |
|         'PelaporanId',
 | |
|         'RefPelaporanId',
 | |
|         'Verifikasi',
 | |
|         'Tanggal',
 | |
|         'Oleh',
 | |
|     ];
 | |
| 
 | |
|     /**
 | |
|      * Relasi ke model Pelaporan.
 | |
|      */
 | |
|     public function pelaporan()
 | |
|     {
 | |
|         return $this->belongsTo(Pelaporan::class, 'PelaporanId', 'PelaporanId');
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Relasi ke model RefPelaporan.
 | |
|      */
 | |
|     public function refPelaporan()
 | |
|     {
 | |
|         return $this->belongsTo(RefPelaporan::class, 'RefPelaporanId', 'RefPelaporanId');
 | |
|     }
 | |
| }
 |