src/Processor/LogsProcessor.php
public function delete(LogsListener $listener, $id = null): RedirectResponse
    {
        $stack = !empty($ids   = input('attr')) ? $this->stack->newQuery()->whereIn('id', $ids) : $this->stack->newQuery()->findOrFail($id);
        if ($stack->delete()) {
            return $listener->deleteSuccess();
        }
        return $listener->deleteFailed();
    }
public function delete(LogsListener $listener, $id = null): RedirectResponse
    {
        $stack = !empty($ids   = input('attr')) ? $this->stack->newQuery()->whereIn('id', $ids) : $this->stack->newQuery()->findOrFail($id);
        if ($stack->delete()) {
            return $listener->deleteSuccess();
        }
        return $listener->deleteFailed();
    }
public function delete ( LogsListener $ listener , $ id = null ) : RedirectResponse { $ stack = ! empty ( $ ids = input ( 'attr' ) ) ? $ this -> stack -> newQuery ( ) -> whereIn ( 'id' , $ ids ) : $ this -> stack -> newQuery ( ) -> findOrFail ( $ id ) ; if ( $ stack -> delete ( ) ) { return $ listener -> deleteSuccess ( ) ; } return $ listener -> deleteFailed ( ) ; }
Deletes notification log

@param LogsListener $listener
@param mixed $id
@return RedirectResponse
Deletes notification log