/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $CostStatus = CostStatus::find($id); $CostStatus->delete(); return redirect('/costStatus')->with('delete_message', 'Cost Status deleted.'); }
public function getCostStatus($id) { return CostStatus::where('id', $id)->orderBy('id', 'asc')->get(); }