public function destroy($id) { $cover = ForumCover::find($id); if ($cover !== null) { $cover->deleteWithFile(); } return fractal_item_array(null, new ForumCoverTransformer()); }
public function destroy($id) { $cover = ForumCover::find($id); if ($cover !== null) { $cover->deleteWithFile(); } return json_item($cover, new ForumCoverTransformer()); }