Expand API with available budgets.

This commit is contained in:
James Cole
2018-06-24 08:33:06 +02:00
parent ad6a9a7df7
commit 91701473af
12 changed files with 522 additions and 27 deletions

View File

@@ -69,13 +69,15 @@ class AttachmentController extends Controller
/**
* Remove the specified resource from storage.
*
* @param int $id
* @param Attachment $attachment
*
* @return \Illuminate\Http\Response
* @return JsonResponse
*/
public function destroy($id)
public function delete(Attachment $attachment): JsonResponse
{
//
$this->repository->destroy($attachment);
return response()->json([], 204);
}
/**