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