Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrysanthos/laravel-nova-future-trend
A Laravel Nova Trend for Future Graphs
https://github.com/chrysanthos/laravel-nova-future-trend
hacktoberfest laravel nova
Last synced: 3 months ago
JSON representation
A Laravel Nova Trend for Future Graphs
- Host: GitHub
- URL: https://github.com/chrysanthos/laravel-nova-future-trend
- Owner: chrysanthos
- License: other
- Created: 2022-08-06T21:38:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-05T20:11:14.000Z (3 months ago)
- Last Synced: 2024-10-09T16:48:20.008Z (3 months ago)
- Topics: hacktoberfest, laravel, nova
- Language: PHP
- Homepage:
- Size: 31.3 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Nova Future Trend
[![Latest Version on Packagist](https://img.shields.io/packagist/v/chrysanthos/laravel-nova-future-trend.svg?style=flat-square)](https://packagist.org/packages/chrysanthos/laravel-nova-future-trend)
[![Total Downloads](https://img.shields.io/packagist/dt/chrysanthos/laravel-nova-future-trend.svg?style=flat-square)](https://packagist.org/packages/chrysanthos/laravel-nova-future-trend)
![GitHub Actions](https://github.com/chrysanthos/laravel-nova-future-trend/actions/workflows/main.yml/badge.svg)Laravel Nova includes a way to generate Trend metrics and display values over time via a line chart. It doesn't, however, offer a way to generate graphs for the future, starting from the current date. This package allows you to generate graphs for the near future.
## Installation
You can install the package via composer:
```bash
composer require chrysanthos/laravel-nova-future-trend
```## Usage
```bash
php artisan nova:trend ScheduledMessagesTrend
```Extend the FutureTrend class instead of Nova's default Trend class.
```diff
- use Laravel\Nova\Metrics\Trend;
- class FutureMessagesTrend extends Trend+ use Chrysanthos\LaravelNovaFutureTrend\FutureTrend;
+ class FutureMessagesTrend extends FutureTrend```
![Example image](https://chrysanthos.xyz/wp-content/uploads/2022/08/future-messages.png)
### Testing
```bash
composer test
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Chrysanthos Prodromou](https://github.com/chrysanthos)
- [All Contributors](../../contributors)## Licence
This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/chrysanthos/laravel-nova-future-trend) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.