コード例 #1
0
 public function destroy(Contactsuser $contactsuser)
 {
     if (is_integer($contactsuser)) {
         $contactsuser = Contactsuser::find($contactsuser);
     }
     $contactsuser->delete();
     Flash::success('Contactsuser has been created Deleted!');
     return Redirect::back();
 }
コード例 #2
0
 public function destroy($contactsuser)
 {
     $contactsuser = Contactsuser::find($contactsuser);
     $contactsuser->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }