protected function changeModelOrderablePosition(Model $model, $position)
    {
        /** @var OrderableStrategyResolverInterface $resolver */
        $resolver = app(OrderableStrategyResolverInterface::class);

        $strategy = $resolver->resolve($this->getModelInformation());

        return $strategy->setPosition($model, $position);
    }
protected function changeModelOrderablePosition(Model $model, $position)
    {
        /** @var OrderableStrategyResolverInterface $resolver */
        $resolver = app(OrderableStrategyResolverInterface::class);

        $strategy = $resolver->resolve($this->getModelInformation());

        return $strategy->setPosition($model, $position);
    }
protected function changeModelOrderablePosition ( Model $ model , $ position ) { /** @var OrderableStrategyResolverInterface $resolver */ $ resolver = app ( OrderableStrategyResolverInterface :: class ) ; $ strategy = $ resolver -> resolve ( $ this -> getModelInformation ( ) ) ; return $ strategy -> setPosition ( $ model , $ position ) ; }
Changes the orderable position for a model.

@param Model           $model
@param string|int|null $position
@return bool     the new position of the model
Changes the orderable position for a model .