/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { if (Page::destroy($id)) { return json_encode(true); } return json_encode(false); }