1. Go to this page and download the library: Download gerenuk/filament-utc-dts 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/ */
gerenuk / filament-utc-dts example snippets
return [
/*
* The Carbon format which should be used to display the UTC timestamp.
*/
'format' => 'd M Hi\Z',
/*
* Whether the component should poll every second to keep the time synced.
*/
'should_poll' => true,
];
namespace App\Providers\Filament;
use Filament\Panel;
use Filament\PanelProvider;
use Gerenuk\FilamentUtcDts\FilamentUtcDtsPlugin;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([FilamentUtcDtsPlugin::make()]);
}
}