protected function handleOrderable($id, array $input = [])
    {
        if (array_key_exists('_orderable', $input)) {
            $model = $this->model->find($id);

            if ($model instanceof Sortable) {
                1 === $input['_orderable'] ? $model->moveOrderUp() : $model->moveOrderDown();

                return true;
            }
        }

        return false;
    }
protected function handleOrderable($id, array $input = [])
    {
        if (array_key_exists('_orderable', $input)) {
            $model = $this->model->find($id);

            if ($model instanceof Sortable) {
                1 === $input['_orderable'] ? $model->moveOrderUp() : $model->moveOrderDown();

                return true;
            }
        }

        return false;
    }
protected function handleOrderable ( $ id , array $ input = [ ] ) { if ( array_key_exists ( '_orderable' , $ input ) ) { $ model = $ this -> model -> find ( $ id ) ; if ( $ model instanceof Sortable ) { 1 === $ input [ '_orderable' ] ? $ model -> moveOrderUp ( ) : $ model -> moveOrderDown ( ) ; return true ; } } return false ; }
Handle orderable update.

@param int   $id
@param array $input

@return bool
Handle orderable update .