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

Route issue #95

Open
Nuranto opened this issue Nov 29, 2018 · 0 comments
Open

Route issue #95

Nuranto opened this issue Nov 29, 2018 · 0 comments

Comments

@Nuranto
Copy link

Nuranto commented Nov 29, 2018

Here is a fix to be able to use route parameters :

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- a/Helpers/grid.php
+++ b/Helpers/grid.php
@@ -14,12 +14,12 @@
     function add_query_param()
     {
         if (func_num_args() === 0) {
-            return array_merge(request()->query(), []);
+            return array_merge(request()->query(), request()->route()->parameters());
         }
 
         $values = collect(func_get_args())->collapse()->toArray();
 
-        return array_merge(request()->query(), $values);
\ No newline at end of file
+        return array_merge(request()->query(), request()->route()->parameters(), $values);
\ No newline at end of file
     }
 }
 

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

1 participant