src/Neutrino/Repositories/Repository.php
protected function basicCall(array $values, $method)
    {
        try {
            $this->messages = [];

            foreach ($values as $item) {
                if ($item->$method() === false) {
                    $this->messages = array_merge($this->messages, $item->getMessages());
                }
            }

            if (!empty($this->messages)) {
                throw new TransactionException(
                    get_class(Arr::fetch($values, 0)) . ':' . $method .
                    ': failed. Show ' . static::class . '::getMessages().'
                );
            }
        } catch (\Exception $e) {
            $this->messages[] = $e->getMessage();

            return false;
        }

        return true;
    }
protected function basicCall(array $values, $method)
    {
        try {
            $this->messages = [];

            foreach ($values as $item) {
                if ($item->$method() === false) {
                    $this->messages = array_merge($this->messages, $item->getMessages());
                }
            }

            if (!empty($this->messages)) {
                throw new TransactionException(
                    get_class(Arr::fetch($values, 0)) . ':' . $method .
                    ': failed. Show ' . static::class . '::getMessages().'
                );
            }
        } catch (\Exception $e) {
            $this->messages[] = $e->getMessage();

            return false;
        }

        return true;
    }
@param array $values
@param       $method

@return bool