How to filter base on multiple meta fields? #1844
Answered
by
erikn69
Temepest74
asked this question in
Q&A
-
On the plugin page, I saw how to filter based on one metadata field, but how can I do it on two or more fields? |
Beta Was this translation helpful? Give feedback.
Answered by
erikn69
Sep 6, 2021
Replies: 1 comment 1 reply
-
I don't know what means metadata for you, and there is no results for metadata on docs, but on params you can set all the filters that you need laravel-permission/src/Models/Permission.php Lines 146 to 151 in 58d5eb6 Example $filtered = Permission::getPermissions(['name' => 'your_name', 'guard_name' => 'web', 'type' => 'Main']); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Temepest74
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know what means metadata for you, and there is no results for metadata on docs, but on params you can set all the filters that you need
laravel-permission/src/Models/Permission.php
Lines 146 to 151 in 58d5eb6
Example