rcknr / nova-multiselect-filter
A Laravel Nova filter that allows multiple selection.
Installs: 234 305
Dependents: 2
Suggesters: 0
Security: 0
Stars: 25
Watchers: 2
Forks: 12
Open Issues: 21
Language:Vue
Requires
- php: >=7.1.0
- dev-master
- 1.3.1
- 1.3
- 1.2
- 1.1
- 1.0
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/tar-2.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/node-sass-4.14.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
This package is auto-updated.
Last update: 2024-12-09 20:49:30 UTC
README
Provides capability of selecting multiple values with Nova Resource filter.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require rcknr/nova-multiselect-filter
Usage
Use MultiselectFilter
class instead of Filter
:
use rcknr\Nova\Filters\MultiselectFilter; class UserType extends MultiselectFilter { public function apply(Request $request, $query, $value) { return $query->whereIn('user_role', $value); } public function options(Request $request) { return [ 'Administrator' => 'admin', 'Editor' => 'editor', ]; } }