From dc7973de62f9b61e366d7244dc669620c2bf9d51 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 7 Aug 2023 23:59:29 -0600 Subject: [PATCH] Update Profile model, add aliases relation --- app/Profile.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Profile.php b/app/Profile.php index 69994bf5b..0ce1e7be0 100644 --- a/app/Profile.php +++ b/app/Profile.php @@ -7,6 +7,7 @@ use App\Util\Lexer\PrettyNumber; use App\HasSnowflakePrimary; use Illuminate\Database\Eloquent\{Model, SoftDeletes}; use App\Services\FollowerService; +use App\Models\ProfileAlias; class Profile extends Model { @@ -369,9 +370,13 @@ class Profile extends Model return $this->hasMany(Story::class); } - public function reported() { return $this->hasMany(Report::class, 'object_id'); } + + public function aliases() + { + return $this->hasMany(ProfileAlias::class); + } }