|
4 | 4 |
|
5 | 5 | use MrTimofey\LaravelAdminApi\Events\BulkActionCalled; |
6 | 6 | use MrTimofey\LaravelAdminApi\Events\BulkDestroyed; |
7 | | -use MrTimofey\LaravelAdminApi\Events\BulkUpdated; |
8 | 7 | use MrTimofey\LaravelAdminApi\Events\ModelActionCalled; |
9 | 8 | use MrTimofey\LaravelAdminApi\Events\ModelCreated; |
10 | 9 | use MrTimofey\LaravelAdminApi\Events\ModelDestroyed; |
@@ -247,23 +246,4 @@ public function bulkDestroy(string $modelName): void |
247 | 246 | $destroyed = $handler->bulkDestroy($this->req->get('keys')); |
248 | 247 | event(new BulkDestroyed($modelName, $this->req->user()->getKey(), $destroyed)); |
249 | 248 | } |
250 | | - |
251 | | - /** |
252 | | - * Set particular fields values on multiple model items. |
253 | | - * @param string $modelName |
254 | | - * @throws \RuntimeException |
255 | | - * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException |
256 | | - * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException |
257 | | - * @throws \Illuminate\Database\Eloquent\ModelNotFoundException |
258 | | - */ |
259 | | - public function bulkUpdate(string $modelName): void |
260 | | - { |
261 | | - $instance = $this->resolveModel($modelName); |
262 | | - $handler = $this->resolveHandler($instance, $modelName); |
263 | | - $handler->authorize('update'); |
264 | | - $changes = $handler->bulkUpdate(); |
265 | | - if (!empty($changes)) { |
266 | | - event(new BulkUpdated($modelName, $this->req->user()->getKey(), $changes)); |
267 | | - } |
268 | | - } |
269 | 249 | } |
0 commit comments