Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Refactor media storage method to use default disk

Sebastian Albert7765640fdd73
diff --git a/app/Models/Traits/HasMedia.php b/app/Models/Traits/HasMedia.php
index 7fbb85900..5b9f1f52a 100644
--- a/app/Models/Traits/HasMedia.php
+++ b/app/Models/Traits/HasMedia.php
@@ -88,7 +88,7 @@ trait HasMedia
$filename = Str::uuid().'.'.$normalizedExt;
$path = 'medias/'.$filename;
- Storage::disk('public')->put($path, $normalizedBytes);
+ Storage::put($path, $normalizedBytes);
return $this->media()->create([
'group_id' => $groupId ?? Str::uuid()->toString(),