You've already forked lubo_comment_query
							
							数据库时间字段cast
This commit is contained in:
		| @@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\Model; | ||||
| 
 | ||||
| class Videos extends Model | ||||
| { | ||||
|     protected $dateFormat = 'U'; | ||||
|     public function comments(): \Illuminate\Database\Eloquent\Relations\HasMany | ||||
|     { | ||||
|         return $this->hasMany(VideoComments::class, "aid", "id"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user