/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $class = NavBar::find($id); if ($class->delete()) { return Response::json('success', 200); } else { return Response::json('error', 400); } }