feat: followers and following
CI / 🧪 Tests Laravel (push) Successful in 2m27s
CI / 🐳 Build & Push Images (push) Successful in 43s

This commit is contained in:
2026-08-14 14:17:29 +02:00
parent 238a044d98
commit f752c28d99
2 changed files with 68 additions and 0 deletions
+4
View File
@@ -2,10 +2,12 @@
namespace App\Http\Resources;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\Facades\Storage;
/** @mixin User */
class FollowResource extends JsonResource
{
/**
@@ -18,7 +20,9 @@ class FollowResource extends JsonResource
return [
'id' => $this->id,
'name' => $this->name,
'bio' => $this->bio,
'avatarUrl' => $this->avatar_url ? asset(Storage::url($this->avatar_url)) : null,
'accountVerified' => $this->account_verified_at !== null,
];
}
}