TOEVulnerability.php
1 <?php 2 3 namespace App\Models; 4 5 use Carbon\Carbon; 6 use Illuminate\Database\Eloquent\Model; 7 8 class TOEVulnerability extends Model 9 { 10 protected $table = 'toe_vulnerability'; 11 12 public function vulnerability() 13 { 14 return $this->belongsTo(Vulnerability::class); 15 } 16 17 public function toe() 18 { 19 return $this->belongsTo(TOE::class); 20 } 21 22 public function reviewedBy() 23 { 24 return $this->belongsTo(User::class, 'reviewed_by'); 25 } 26 }