From dcddc72c861d83a19cc2f87cea3bdecde4f1a5d2 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 15 Oct 2024 04:31:40 -0600 Subject: [PATCH] Update AdminModeratedProfileResource --- app/Http/Resources/Admin/AdminModeratedProfileResource.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Resources/Admin/AdminModeratedProfileResource.php b/app/Http/Resources/Admin/AdminModeratedProfileResource.php index 370145b08..fd9bf85d1 100644 --- a/app/Http/Resources/Admin/AdminModeratedProfileResource.php +++ b/app/Http/Resources/Admin/AdminModeratedProfileResource.php @@ -2,9 +2,9 @@ namespace App\Http\Resources\Admin; +use App\Profile; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; -use App\Profile; class AdminModeratedProfileResource extends JsonResource { @@ -17,11 +17,12 @@ class AdminModeratedProfileResource extends JsonResource { $profileObj = []; $profile = Profile::withTrashed()->find($this->profile_id); - if($profile) { + if ($profile) { $profileObj = [ 'username' => $profile->username, ]; } + return [ 'id' => $this->id, 'domain' => $this->domain,