Accessing id on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
35
36
return $result;
37
}
38
39
public function exportResult(Enrollment $enrollment, CertificatesInterface $certificatesService)
40
{
41
$certificatesService->exportResult($enrollment);
42
}
43
44
public function exportCourseResults(Course $course, CertificatesInterface $certificatesService)