Exemplo n.º 1
0
 public function deleteTeam(Team $team)
 {
     $message = 'Data ' . $team->namateam . ' berhasil di hapus';
     $team->user()->delete();
     $team->delete();
     return redirect()->back()->with('status', $message);
 }