Jelajahi Sumber

Update AdminModeratedProfileResource

Daniel Supernault 8 bulan lalu
induk
melakukan
80ee8a7414
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      app/Http/Resources/Admin/AdminModeratedProfileResource.php

+ 3 - 0
app/Http/Resources/Admin/AdminModeratedProfileResource.php

@@ -19,7 +19,10 @@ class AdminModeratedProfileResource extends JsonResource
         $profile = Profile::withTrashed()->find($this->profile_id);
         $profile = Profile::withTrashed()->find($this->profile_id);
         if ($profile) {
         if ($profile) {
             $profileObj = [
             $profileObj = [
+                'name' => $profile->name,
                 'username' => $profile->username,
                 'username' => $profile->username,
+                'username_str' => explode('@', $profile->username)[1],
+                'remote_url' => $profile->remote_url,
             ];
             ];
         }
         }