Indatus\Ranger\ApiDatabase\QueryExecution\InstanceQuery::put PHP Метод

put() защищенный Метод

protected put ( ) : array
Результат array
    protected function put()
    {
        $instance = $this->getInstance();
        $input = $this->requestContainer->getInput();
        //we want to filling the instance with deleted_at because it causes
        //problems using laravel's Eloquent ORM
        $instance->fill(array_except($input, ['_method', 'deleted_at']));
        if (!$instance->save()) {
            throw new ValidationErrorException();
        }
        return array_fill_keys(['instance'], $instance->toArray());
    }