user()->current_workspace_id) ->findOrFail(data_get($request->validated(), 'post_id')); DeletePost::execute($post); return Response::structured(['deleted' => true]); } public function schema(JsonSchema $schema): array { return [ 'post_id' => $schema->string()->required()->description('The post ID to delete.'), ]; } }