@@ -102,7 +102,7 @@ protected function handleIndexActionCommon($request = null, array $extraParams =
102
102
$ this ->validateRequestType ($ request );
103
103
$ this ->addCustomParams ($ extraParams );
104
104
$ this ->authoriseUserAction ('viewAny ' );
105
- $ this ->handleCommonActions ($ request );
105
+ $ this ->handleCommonActions ($ this -> request );
106
106
$ this ->qualifyCollectionQuery ();
107
107
}
108
108
@@ -178,7 +178,7 @@ public function handleShowAction($id, $request = null, array $extraParams = [])
178
178
$ this ->validateRequestType ($ request );
179
179
$ this ->addCustomParams ($ extraParams );
180
180
181
- $ this ->handleCommonActions ($ request );
181
+ $ this ->handleCommonActions ($ this -> request );
182
182
$ fields = $ this ->parseFieldParams ();
183
183
$ this ->qualifyItemQuery ();
184
184
@@ -205,7 +205,7 @@ public function handleUpdateAction($id, $request, array $extraParams = [])
205
205
$ this ->validateRequestType ($ request );
206
206
$ this ->addCustomParams ($ extraParams );
207
207
208
- $ this ->handleCommonActions ($ request );
208
+ $ this ->handleCommonActions ($ this -> request );
209
209
210
210
try {
211
211
$ item = $ this ->builder ->whereKey ($ id )->firstOrFail ();
@@ -214,9 +214,9 @@ public function handleUpdateAction($id, $request, array $extraParams = [])
214
214
return $ this ->errorNotFound ('Record does not exist ' );
215
215
}
216
216
217
- $ this ->validate ($ request , $ this ->rulesForUpdate ($ item ->getKey ()));
217
+ $ this ->validate ($ this -> request , $ this ->rulesForUpdate ($ item ->getKey ()));
218
218
219
- $ data = $ this ->qualifyUpdateQuery ($ request ->all ());
219
+ $ data = $ this ->qualifyUpdateQuery ($ this -> request ->all ());
220
220
221
221
$ updates = $ this ->addTableData ($ data );
222
222
@@ -232,7 +232,7 @@ public function handleUpdateAction($id, $request, array $extraParams = [])
232
232
233
233
$ this ->storeRelated ($ item , $ diff , $ data );
234
234
235
- event (new Updated ($ item , $ request ));
235
+ event (new Updated ($ item , $ this -> request ));
236
236
237
237
DB ::commit ();
238
238
@@ -261,7 +261,7 @@ public function handleDestroyAction($id, $request = null)
261
261
$ item = $ this ->builder ->whereKey ($ id )->firstOrFail ();
262
262
$ this ->authoriseUserAction ('delete ' , $ item );
263
263
$ item ->delete ();
264
- event (new Deleted ($ item , $ request ));
264
+ event (new Deleted ($ item , $ this -> request ));
265
265
} catch (ModelNotFoundException $ exception ) {
266
266
return $ this ->errorNotFound ('Record not found ' );
267
267
}
0 commit comments