dio7
1 year ago
146
17
Laravel

updating value

Posted 1 year ago by dio7

when i update my company name and click submit what happens is this error below:

BadMethodCallException Call to undefined method Illuminate\Database\Eloquent\Builder::upate()

it supported by this code below and highlighted this words "throw new BadMethodCallException(sprintf("

C:\xampp\htdocs\crud\vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php if ($matches['class'] != get_class($object) || $matches['method'] != $method) { throw $e; }

        static::throwBadMethodCallException($method);
    }
}

/**
 * Throw a bad method call exception for the given method.
 *
 * @param  string  $method
 * @return void
 *
 * @throws \BadMethodCallException
 */
protected static function throwBadMethodCallException($method)
{
    throw new BadMethodCallException(sprintf(
        'Call to undefined method %s::%s()', static::class, $method
    ));
}

}

Arguments "Call to undefined method Illuminate\Database\Eloquent\Builder::upate()"

Please sign in or create an account to participate in this conversation.