@@ -41,7 +41,7 @@ |
||
41 | 41 | public function array_walk($shift, $count, $params) |
42 | 42 | { |
43 | 43 | try{ |
44 | - DB::beginTransaction(); |
|
44 | + DB::beginTransaction(); |
|
45 | 45 | array_walk($shift, array($this, 'process'), $params); |
46 | 46 | DB::commit(); |
47 | 47 | }catch(\Exception $e){ |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | public function process($student) |
76 | 76 | { |
77 | - try{ |
|
77 | + try{ |
|
78 | 78 | $wrongStudentsClass = Institution_class_student::where('institution_id', $student['institution_id']) |
79 | 79 | ->whereRaw('institution_class_id not in (select id from institution_classes where institution_id ='.$student['institution_id'].' )') |
80 | 80 | ->orWhere('institution_class_id', 0) |
@@ -143,8 +143,8 @@ discard block |
||
143 | 143 | $this->output->writeln("student record :".$student['student_id'] ); |
144 | 144 | } |
145 | 145 | } |
146 | - }catch(\Exception $e){ |
|
146 | + }catch(\Exception $e){ |
|
147 | 147 | dd($e); |
148 | - } |
|
148 | + } |
|
149 | 149 | } |
150 | 150 | } |
@@ -25,11 +25,11 @@ |
||
25 | 25 | * |
26 | 26 | * @return void |
27 | 27 | */ |
28 | - public function boot() |
|
29 | - { |
|
30 | - // |
|
31 | - if(!(\App::environment('local'))) { |
|
32 | - URL::forceScheme('https'); |
|
33 | - } |
|
34 | - } |
|
28 | + public function boot() |
|
29 | + { |
|
30 | + // |
|
31 | + if(!(\App::environment('local'))) { |
|
32 | + URL::forceScheme('https'); |
|
33 | + } |
|
34 | + } |
|
35 | 35 | } |
@@ -140,7 +140,7 @@ |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | public static function createOrUpdate($studentId,$params,$file){ |
143 | - return self::create([ |
|
143 | + return self::create([ |
|
144 | 144 | 'student_id' => $studentId, |
145 | 145 | 'institution_class_id' => $params['institution_class']->id, |
146 | 146 | 'education_grade_id' => $params['institution_grade']->education_grade_id, |