/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $client = Client::findFail($id); $client->delete(); $this->data->name = $client->name; return $this->json(); }