Пример #1
0
 /**
  * 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.');
 }
Пример #2
0
 public function getCostStatus($id)
 {
     return CostStatus::where('id', $id)->orderBy('id', 'asc')->get();
 }