user()->currentWorkspace; $post = CreatePost::execute($workspace, $request->user(), $request->validated()); $post->load(['postPlatforms.socialAccount']); return Response::structured($post->toArray()); } public function schema(JsonSchema $schema): array { return [ 'date' => $schema->string()->description('The scheduled date (Y-m-d). Defaults to today.'), ]; } }