April 9 update

This commit is contained in:
George Frederick "Buzz" Beurling
2020-04-09 17:20:03 -04:00
parent 94509caf3c
commit 50abb9d909
57 changed files with 2635 additions and 854 deletions

View File

@@ -77,18 +77,7 @@ class User extends Authenticatable
public function futureCourses()
{
$filterCourse = collect();
foreach (\Auth::user()->courses as $course)
{
if($course->event)
{
if(date('U',strtotime($course->event->date_begin)) >= date('U'))
{
$filterCourse->push($course);
}
}
}
return $filterCourse;
return \App\Course::allFutureForUser($this->id);
}
public function routeNotificationForNexmo($notification)