mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
April 9 update
This commit is contained in:
13
app/User.php
13
app/User.php
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user