added it_get_recent_files test

This commit is contained in:
Peter Papp
2021-03-01 16:33:51 +01:00
parent bb2e349a31
commit d8b279479a
3 changed files with 99 additions and 9 deletions

View File

@@ -254,7 +254,7 @@ class User extends Authenticatable
*/
public function latest_uploads()
{
return $this->hasMany(File::class)->with(['parent'])->take(40);
return $this->hasMany(File::class)->with(['parent:id,name'])->take(40);
}
/**