@@ -77,7 +77,7 @@ |
||
77 | 77 | return $this->enrollments; |
78 | 78 | } |
79 | 79 | |
80 | - return DB::transaction(fn () => Enrollment::with('course', 'student', 'shift') |
|
80 | + return DB::transaction(fn() => Enrollment::with('course', 'student', 'shift') |
|
81 | 81 | ->get() |
82 | 82 | ->sortByDesc('courses.name') |
83 | 83 | ); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | public function storeImport(ImportRequest $request) |
46 | 46 | { |
47 | 47 | try { |
48 | - DB::transaction(fn () => Excel::import(new EnrollmentsImport(), $request->enrollments->path())); |
|
48 | + DB::transaction(fn() => Excel::import(new EnrollmentsImport(), $request->enrollments->path())); |
|
49 | 49 | |
50 | 50 | flash('The enrollments file was successfully imported.')->success(); |
51 | 51 | } catch (InvalidImportFileException $e) { |