|
@@ -164,4 +164,10 @@ class Product extends Base |
|
@@ -164,4 +164,10 @@ class Product extends Base |
|
164
|
// return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
|
164
|
// return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
|
|
165
|
// }
|
165
|
// }
|
|
166
|
|
166
|
|
|
|
|
167
|
+ public function getSendTimeAttribute($value){
|
|
|
|
168
|
+ if(!$value){
|
|
|
|
169
|
+ return date('Y-m-d H:i:s', strtotime($this->getAttribute('created_at')));
|
|
|
|
170
|
+ }
|
|
|
|
171
|
+ return $value;
|
|
|
|
172
|
+ }
|
|
167
|
} |
173
|
} |