|
|
@@ -22,7 +22,7 @@ class MeetingModel extends BaseModel
|
|
|
// 设置数据表
|
|
|
protected $table = 'meetings';
|
|
|
|
|
|
- protected $appends = ['areas','time_text'];
|
|
|
+ protected $appends = ['areas','date','time_text'];
|
|
|
|
|
|
public function getThumbAttribute($value)
|
|
|
{
|
|
|
@@ -44,6 +44,12 @@ class MeetingModel extends BaseModel
|
|
|
return $startAt.' - '.$endAt;
|
|
|
}
|
|
|
|
|
|
+ // 时间
|
|
|
+ public function getDateAttribute()
|
|
|
+ {
|
|
|
+ return [$this->start_at||'',$this->end_at||''];
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @return array
|
|
|
*/
|