Exemplo n.º 1
0
 public function index()
 {
     $projects = \Auth::user()->getProjects();
     $comments = Feedable::feed(Comment::ofProjects($projects));
     $activities = Feedable::feed(Activity::ofProjects($projects));
     return view('dashboard', ['projects' => $projects, 'activities' => $activities, 'comments' => $comments]);
 }
Exemplo n.º 2
0
 public function deleteActivity(Activity $activity)
 {
     $activity->delete();
 }