solitweb / laravel-dashboard-date-time-tile
A date & time tile for the Laravel Dashboard
Installs: 21 815
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.4|^8.0
- spatie/laravel-dashboard: ^2.0
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-11-05 12:55:26 UTC
README
This tile displays date & time for a specified timezone.
This tile can be used on the Laravel Dashboard.
Installation
You can install the package via composer:
composer require solitweb/laravel-dashboard-date-time-tile
Usage
In your dashboard view you use the livewire:date-time-tile
component.
<x-dashboard> <livewire:date-time-tile position="a1" timezone="Europe/Brussels" /> </x-dashboard>
By default, the title of the tile will display the timezone string, i.e. Europe/Brussels. This can be overidden using the optional title
parameter, e.g.
<livewire:date-time-tile position="a1" timezone="Europe/London" title="Greenwich Mean Time" />
Customizing the view
If you want to customize the view used to render this tile, run this command:
php artisan vendor:publish --provider="Solitweb\DateTimeTile\DateTimeTileServiceProvider" --tag="dashboard-date-time-tile-views"
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email stijn@solitweb.be instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.