|
@@ -25,6 +25,11 @@ class PostRecordModel extends BaseModel
|
|
|
|
|
|
|
|
protected $appends = ['time_text'];
|
|
protected $appends = ['time_text'];
|
|
|
|
|
|
|
|
|
|
+ public function getAlbumsAttribute($value)
|
|
|
|
|
+ {
|
|
|
|
|
+ return $value? get_images_preview($value) : [];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function getTimeTextAttribute()
|
|
public function getTimeTextAttribute()
|
|
|
{
|
|
{
|
|
|
return $this->create_time? dateFormat($this->create_time,'Y-m-d') : '';
|
|
return $this->create_time? dateFormat($this->create_time,'Y-m-d') : '';
|