ptgen api point support parameter & default user

This commit is contained in:
xiaomlove
2022-02-28 23:20:42 +08:00
parent 5ed80ed637
commit b9d5df232b
51 changed files with 447 additions and 51 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ class Torrent extends NexusModel
public function user()
{
return $this->belongsTo(User::class, 'owner');
return $this->belongsTo(User::class, 'owner')->withDefault(User::getDefaultUserAttributes());
}
public function thanks()