定制 aymanalhattami/filament-date-scopes-filter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

aymanalhattami/filament-date-scopes-filter

最新稳定版本:1.2.0

Composer 安装命令:

composer require aymanalhattami/filament-date-scopes-filter

包简介

Filament Date Scopes Filter

README 文档

README

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

Provide a filter by seconds, minutes, hours, days, weeks, months, quarter, years, decades and millenniums for table.

Installation

At first, this package depends on laravel date scops. Please read the laravel date scops document and prepare your model(s) to be filtered by date scopes.

You can install the package via composer:

composer require aymanalhattami/filament-date-scopes-filter

Usage

use AymanAlhattami\FilamentDateScopesFIlter\DateScopeFilter;

// ...
public static function table(Table $table): Table
{
    return $table
        ->filters([
            DateScopeFilter::make('created_at'),
        ])
    // ...
}
// ...

More configuration

use AymanAlhattami\FilamentDateScopesFIlter\DateScopeFilter;

// ...
public static function table(Table $table): Table
{
    return $table
        ->filters([
            DateScopeFilter::make('created_at')
                ->withoutSeconds() // ex
                ->withoutMinutes()
                ->withoutHours()
                ->withoutDays()
                ->withoutWeeks()
                ->withoutMonths()
                ->withoutQuarters()
                ->withoutYears()
                ->withoutDecades()
                ->withoutCenturies()
                ->withoutMillenniums(),
        ])
    // ...
}
// ...

Translations

Publish the translations using:

php artisan vendor:publish --tag="filament-date-scopes-filter-translations"

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email ayman.m.alhattami@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

  • Stars: 18
  • Watchers: 3
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-17