Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 2.31 KB

File metadata and controls

67 lines (42 loc) · 2.31 KB

A date & time tile for the Laravel Dashboard

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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 [email protected] instead of using the issue tracker.

Credits

License

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