06 2022
This commit is contained in:
parent
34a3d2196b
commit
93d1bea8e3
45 changed files with 1601 additions and 573 deletions
|
|
@ -34,7 +34,8 @@ class TravelCategory extends Model
|
|||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'name'
|
||||
'name',
|
||||
'active'
|
||||
];
|
||||
|
||||
public function bookings()
|
||||
|
|
@ -46,4 +47,9 @@ class TravelCategory extends Model
|
|||
{
|
||||
return $this->hasMany(Lead::class, 'travelcategory_id');
|
||||
}
|
||||
|
||||
public function travel_programs()
|
||||
{
|
||||
return $this->hasMany(TravelProgram::class, 'travel_category');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue