Exemplo n.º 1
0
 public function destroy(Dealworker $dealworker)
 {
     if (is_integer($dealworker)) {
         $dealworker = Dealworker::find($dealworker);
     }
     $dealworker->delete();
     Flash::success('Dealworker has been created Deleted!');
     return Redirect::back();
 }
 public function destroy($dealworker)
 {
     $dealworker = Dealworker::find($dealworker);
     $dealworker->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }