Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sortable URL with parameters #18

Open
rc1021 opened this issue Aug 2, 2016 · 2 comments
Open

Sortable URL with parameters #18

rc1021 opened this issue Aug 2, 2016 · 2 comments

Comments

@rc1021
Copy link

rc1021 commented Aug 2, 2016

thanks laravel-table.

Why do you just want to return 2 fields on Column.php line: 201?

if url looks like http://your.domain/users?kinds=paymember&sort=email&dir=desc

and click sort(email) button again, that "kinds=paymember" will disappear.

that is not friendly.

it is work for me below:

protected function getCurrentInput()
{
    return request()->input();
    // return Input::only([
    //     config('gbrock-tables.key_field')     => Request::input(config('gbrock-tables.key_field')),
    //     config('gbrock-tables.key_direction') => Request::input(config('gbrock-tables.key_direction')),
    // ]);
}

what do you think?

@kedves
Copy link

kedves commented Sep 12, 2016

Hi @Easter1021 . Did you found any issues with this workaround?

@rc1021
Copy link
Author

rc1021 commented Sep 12, 2016

@kedves no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants