@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -87,8 +87,8 @@ discard block |
||
87 | 87 | }, function ($value) { // if the filter is active |
88 | 88 | CRUD::addClause('where', 'rhythm_id', $value); |
89 | 89 | }, |
90 | - function () { // if the filter is NOT active (the GET parameter "checkbox" does not exit) |
|
91 | - }); |
|
90 | + function () { // if the filter is NOT active (the GET parameter "checkbox" does not exit) |
|
91 | + }); |
|
92 | 92 | |
93 | 93 | CRUD::addFilter([ // select2 filter |
94 | 94 | 'name' => 'teacher_id', |
@@ -99,8 +99,8 @@ discard block |
||
99 | 99 | }, function ($value) { // if the filter is active |
100 | 100 | CRUD::addClause('where', 'teacher_id', $value); |
101 | 101 | }, |
102 | - function () { // if the filter is NOT active (the GET parameter "checkbox" does not exit) |
|
103 | - }); |
|
102 | + function () { // if the filter is NOT active (the GET parameter "checkbox" does not exit) |
|
103 | + }); |
|
104 | 104 | |
105 | 105 | CRUD::addFilter([ // select2 filter |
106 | 106 | 'name' => 'level_id', |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | }, function ($value) { // if the filter is active |
112 | 112 | CRUD::addClause('where', 'level_id', $value); |
113 | 113 | }, |
114 | - function () { // if the filter is NOT active (the GET parameter "checkbox" does not exit) |
|
115 | - }); |
|
114 | + function () { // if the filter is NOT active (the GET parameter "checkbox" does not exit) |
|
115 | + }); |
|
116 | 116 | |
117 | 117 | CRUD::addFilter([ // select2 filter |
118 | 118 | 'name' => 'period_id', |
@@ -123,11 +123,11 @@ discard block |
||
123 | 123 | }, function ($value) { // if the filter is active |
124 | 124 | CRUD::addClause('where', 'period_id', $value); |
125 | 125 | }, |
126 | - function () { // if the filter is NOT active (the GET parameter "checkbox" does not exit) |
|
127 | - $period = \App\Models\Period::get_default_period()->id; |
|
128 | - CRUD::addClause('where', 'period_id', $period); |
|
129 | - $this->crud->getRequest()->request->add(['period_id' => $period]); // to make the filter look active |
|
130 | - }); |
|
126 | + function () { // if the filter is NOT active (the GET parameter "checkbox" does not exit) |
|
127 | + $period = \App\Models\Period::get_default_period()->id; |
|
128 | + CRUD::addClause('where', 'period_id', $period); |
|
129 | + $this->crud->getRequest()->request->add(['period_id' => $period]); // to make the filter look active |
|
130 | + }); |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | protected function setupCreateOperation() |