承接 oleksiypetlyuk/nova-range-filter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

oleksiypetlyuk/nova-range-filter

最新稳定版本:0.0.2

Composer 安装命令:

composer require oleksiypetlyuk/nova-range-filter

包简介

A Laravel Nova filter.

README 文档

README

Nova Range Filter

A custom vue component that fully supports filtering over a range of values based on Vue Slider Component

Installation

You can install the package into a Laravel application that uses Nova via composer:

composer require oleksiypetlyuk/nova-range-filter

Usage

Just use the Oleksiypetlyuk\NovaRangeFilter\NovaRangeFilter field in your Nova filter:

<?php namespace App\Nova\Filters\Profile; use App\Models\Profile\Profile; use Illuminate\Database\Eloquent\Builder; use Illuminate\Http\Request; use Oleksiypetlyuk\NovaRangeFilter\NovaRangeFilter; class HourlyPriceFilter extends NovaRangeFilter { public $name = 'Price range'; public function __construct() { $this->min = floor(Profile::min('hourly_price')); $this->max = ceil(Profile::max('hourly_price')); parent::__construct(); } /**  * Apply the filter to the given query.  *  * @param Request $request  * @param Builder $query  * @param mixed $value  * @return Builder  */ public function apply(Request $request, $query, $value) { return $query->whereBetween('hourly_price', $value) ->orWhereNull('hourly_price'); } }

Contributions

All contributions (big or small) are highly welcomed. Send a PR

Authors

Support

If you would love to support the continuous development and maintenance of this package, please consider buying me a coffee.

Buy Me A Coffee

License

This package is open-sourced software licensed under the MIT License

统计信息

  • 总下载量: 79.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固