Exemplo n.º 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy(Activity $activity)
 {
     // Delete activity of $id
     $activity->delete();
     flash()->success('Activity has been deleted!');
     return redirect('activities');
 }
 public function destroy(Activity $activity)
 {
     $activity->delete();
 }