Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove repo parameter from write operations in RepoRequestClient

+3 -3
+3 -3
src/Client/Requests/Atproto/RepoRequestClient.php
··· 32 32 */ 33 33 #[ScopedEndpoint(Scope::TransitionGeneric, description: 'Create records in repository')] 34 34 public function createRecord( 35 - string $repo, 36 35 string|BackedEnum $collection, 37 36 array $record, 38 37 ?string $rkey = null, 39 38 bool $validate = true, 40 39 ?string $swapCommit = null 41 40 ): CreateRecordResponse { 41 + $repo = $this->atp->client->session()->did(); 42 42 $collection = $collection instanceof BackedEnum ? $collection->value : $collection; 43 43 $this->checkCollectionScope($collection, 'create'); 44 44 ··· 62 62 */ 63 63 #[ScopedEndpoint(Scope::TransitionGeneric, description: 'Delete records from repository')] 64 64 public function deleteRecord( 65 - string $repo, 66 65 string|BackedEnum $collection, 67 66 string $rkey, 68 67 ?string $swapRecord = null, 69 68 ?string $swapCommit = null 70 69 ): DeleteRecordResponse { 70 + $repo = $this->atp->client->session()->did(); 71 71 $collection = $collection instanceof BackedEnum ? $collection->value : $collection; 72 72 $this->checkCollectionScope($collection, 'delete'); 73 73 ··· 91 91 */ 92 92 #[ScopedEndpoint(Scope::TransitionGeneric, description: 'Update records in repository')] 93 93 public function putRecord( 94 - string $repo, 95 94 string|BackedEnum $collection, 96 95 string $rkey, 97 96 array $record, ··· 99 98 ?string $swapRecord = null, 100 99 ?string $swapCommit = null 101 100 ): PutRecordResponse { 101 + $repo = $this->atp->client->session()->did(); 102 102 $collection = $collection instanceof BackedEnum ? $collection->value : $collection; 103 103 $this->checkCollectionScope($collection, 'update'); 104 104