FileManager
This commit is contained in:
parent
c8948338bb
commit
f1e0900a7a
131 changed files with 5844 additions and 3081 deletions
|
|
@ -124,6 +124,7 @@ class TravelProgram extends Model
|
|||
'subtitle',
|
||||
'program_code',
|
||||
'weekdays',
|
||||
'keywords',
|
||||
'status',
|
||||
];
|
||||
|
||||
|
|
@ -142,6 +143,12 @@ class TravelProgram extends Model
|
|||
return $this->hasOne('App\Models\TravelProgramCountry', 'program_id', 'id');
|
||||
}
|
||||
|
||||
public function hasTravelProgramDrafts (){
|
||||
if($this->travel_program_drafts->count()){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public function getWeekdaysArray(){
|
||||
if($this->weekdays){
|
||||
return explode(',', $this->weekdays);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue