PHP code example of aymanalhattami / filament-date-scopes-filter
1. Go to this page and download the library: Download aymanalhattami/filament-date-scopes-filter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aymanalhattami / filament-date-scopes-filter example snippets
use AymanAlhattami\FilamentDateScopesFIlter\DateScopeFilter;
// ...
public static function table(Table $table): Table
{
return $table
->filters([
DateScopeFilter::make('created_at'),
])
// ...
}
// ...
bash
php artisan vendor:publish --tag="filament-date-scopes-filter-translations"