/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $base_model = BaseModel::find($id); if ($base_model) { return $base_model->delete(); } else { return $this->notFoundResponse(); } }