src/Http/Controllers/MassDelete.php
public function massDelete(MassDeleteRequest $request)
    {
        $data = $request->only('ids');

        $this->repository->massDelete($data['ids']);

        \Cache::tags('response')->flush();

        return $this->successJsonResponse();
    }
public function massDelete(MassDeleteRequest $request)
    {
        $data = $request->only('ids');

        $this->repository->massDelete($data['ids']);

        \Cache::tags('response')->flush();

        return $this->successJsonResponse();
    }
public function massDelete ( MassDeleteRequest $ request ) { $ data = $ request -> only ( 'ids' ) ; $ this -> repository -> massDelete ( $ data [ 'ids' ] ) ; \ Cache :: tags ( 'response' ) -> flush ( ) ; return $ this -> successJsonResponse ( ) ; }
Mass Delete

Mass delete many models byt ids

@param $request

@return \Illuminate\Http\JsonResponse
Mass Delete