Jalali DateTime by AriaieBOY
CommunityThis plugin will add a Jalali DateTime Column for filament table builder.
Author:
AriaieBOY
Package health
Automated checks of this plugin's Composer package
1 checks
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Documentation
This package will add a Jalali DateTime Column for filament table builder
#Installation
You can install the package via composer:
composer require ariaieboy/filament-jalali-datetime
You can publish the config file with:
php artisan vendor:publish --tag="filament-jalali-datetime-config"
This is the contents of the published config file:
// config for Ariaieboy/FilamentJalaliDatetime
return [
'date_format'=>'Y/m/d',
'date_time_format'=>'Y/m/d H:i:s',
];
#Usage
//instead of this :
use Filament\Tables\Columns\TextColumn;
TextColumn::make('created_at')->dateTime()
//Since v1.2 you can use the code below to show Jalali date and dateTime
TextColumn::make('created_at')->jalaliDate();
TextColumn::make('created_at')->jalaliDateTime();
//you can use the code below for jalali datetime
use Ariaieboy\FilamentJalaliDatetime\JalaliDateTimeColumn;
JalaliDateTimeColumn::make('created_at')->dateTime() // it will show the date like this : 1401/03/15 20:18:52
//or
JalaliDateTimeColumn::make('created_at')->date() // it will show the date like this : 1401/03/15
#Testing
composer test
#Changelog
Please see CHANGELOG for more information on what has changed recently.
#Contributing
Please see CONTRIBUTING for details.
#Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
From the same author
Jalali/Shamsi Support
This plugin adds Jalali/Shamsi Support to FilamentPHP.
Author:
AriaieBOY
Currency
Currency formatting and conversion package.
Author:
AriaieBOY
Featured Plugins
A selection of plugins curated by the Filament team
Compact Theme
A theme that makes data-heavy panels easier to scan by fitting more useful information on each screen.
Filament
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese
Sharp Theme
A theme that gives panels a precise, technical look with square corners, strong borders, and clear contrast.
Filament