dingo / dingo/api

Dingo $this->delete not working

Open
#1,398 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
9.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

`public function it_deletes_a_fruit()
{
$user = factory(\App\User::class)->create(['password'=> bcrypt('foo')]);

$fruit = \App\Fruit::create(['name' => 'peache', 'color' => 'peache', 'weight' => 125, 'delicious' => true]);

$response = $this->delete('api/fruits/' . $fruit->id, [], $this->headers($user));

$response->assertStatus(204);
}

}`

for don't worry about the **$fruit** and **$this->headers**
Why would this method not work?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.