Exemplo n.º 1
0
 public function getActivities()
 {
     $activities = Activity::with('lesson')->where('user_id', Auth::getAuthIdentifier())->get();
     return $activities;
 }
Exemplo n.º 2
0
 public function get_activities()
 {
     $activities = DB::table('activities')->leftJoin('lessons', 'lessons.id', '=', 'activities.lesson_id')->where('user_id', '=', Auth::getAuthIdentifier())->get();
     return $activities;
 }