Skip to content

Conversation

@binaryk
Copy link
Collaborator

@binaryk binaryk commented May 19, 2020

 $response = $this->postJson('restify-api/companies/' . $company->id . '/attach/users', [
            'users' => [1, 2],
            'is_admin' => true,
        ])
            ->assertStatus(201);

        $response->assertJsonFragment([
            'company_id' => '1',
            'user_id' => $user->id,
            'is_admin' => true,
        ]);

@binaryk binaryk merged commit a3118f4 into 3.x May 19, 2020
@binaryk binaryk deleted the related-repositories branch May 19, 2020 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants