Flowframe / laravel-trend

Generate trends for your models. Easily generate charts or reports.
MIT License
607 stars 64 forks source link

Placeholders with custom date format #22

Closed bohemianoid closed 1 year ago

bohemianoid commented 1 year ago

The new placeholders method allows to get the placeholders as a collection in a custom date format for further use in diagrams and reports:

$trend = Trend::model(...)
    ->between(...)
    ->perDay();

$placeholders = $trend->placeholders('D');
$totals = $trend->count();

Please let me know if a can support you in any way to merge these changes and thanks for your work. :tada:

Larsklopstra commented 1 year ago

Sorry but I see no use-case for this method, why would you publicly need to call placeholders()

Larsklopstra commented 1 year ago

Will close this for now