/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { CommonNormal::delete($id); return Redirect::action('ProductController@index')->with('message', 'Đã xóa'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { CommonNormal::delete($id); return Redirect::action('FeedbackController@index'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $data = Category::find($id); if ($data) { RelationBox::deleteRelationship($data, 'prices'); CommonNormal::delete($id); return Redirect::action('CategoryController@index')->with('message', 'Đã xóa'); } return Redirect::action('CategoryController@index')->with('message', 'Không tồn tại'); }