laravel-dashboard-trello-tile
laravel-dashboard-trello-tile copied to clipboard
Trello tile for Laravel Dashboard
Trello Tile
A tile for Laravel Dashboard that displays tasks from Trello.
Install
Via Composer
$ composer require tkaratug/laravel-dashboard-trello-tile
Usage
In the dashboard
config file, you must add this configuration in the tiles
key. The list_id
should be any list id from Trello that you want to display on the dashboard.
// in config/dashboard.php
return [
// ...
'tiles' => [
'trello' => [
'trello_key' => env('TRELLO_API_KEY'),
'trello_token' => env('TRELLO_API_TOKEN'),
'list_id' => env('TRELLO_LIST_ID'),
'refresh_interval_in_seconds' => 30,
],
],
];
In app\Console\Kernel.php
you should schedule the Tkaratug\TrelloTile\Commands\FetchTrelloCardsCommand
to run every x
minutes.
// in app/console/Kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command(\Tkaratug\TrelloTile\FetchTrelloCardsCommand::class)->everyThirtyMinutes();
}
In your dashboard view you use the livewire:trello-tile
component.
<x-dashboard>
<livewire:trello-tile position="a1" />
</x-dashboard>
You can specify the number of tasks you want to be displayed on your dashboard with count
attribute.
<x-dashboard>
<livewire:trello-tile position="a1" count="5" />
</x-dashboard>
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
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
- Turan Karatuğ
- All Contributors
License
The MIT License (MIT). Please see License File for more information.