Пример #1
0
 public function destroy(Family $family)
 {
     if (is_integer($family)) {
         $family = Family::find($family);
     }
     $family->delete();
     Flash::success('Family has been created Deleted!');
     return Redirect::back();
 }
Пример #2
0
 public function destroy($family)
 {
     $family = Family::find($family);
     $family->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }