add first login logic

This commit is contained in:
Mathieu Lagace
2020-07-31 17:29:47 -04:00
parent 039b09b681
commit 8158f8a8aa
22 changed files with 655 additions and 393 deletions

View File

@@ -147,7 +147,11 @@ class EventController extends Controller
}
$course->user_id = $instructor;
$course->location = request('location_n'.$l.'_p'.$p);
if (request('location_n'.$l.'_p'.$p) != null) {
$course->location = request('location_n'.$l.'_p'.$p);
} else {
$course->location = "";
}
$course->periode = $p;
$course->level = $l;