Public demo: nothing is sent to any provider and the data resets regularly.

Insights

laravel-trend groups the posts by period with one query and fills the periods without posts with zero. The charts are plain inline SVG drawn on the server: no script and no chart library.

laravel-trend

Posts per month

51 posts in the last six months, Trend::model(Post::query()).between(start, end).per_month().count().

Posts per month2026-06: 662026-062026-07: 882026-072026-08: 882026-082026-09: 992026-092026-10: 772026-102026-11: 992026-112026-12: 442026-12

Posts per day, last 30 days

Posts per day2026-11-04: 02026-11-042026-11-05: 02026-11-06: 02026-11-062026-11-07: 12026-11-08: 02026-11-082026-11-09: 02026-11-10: 02026-11-102026-11-11: 02026-11-12: 12026-11-122026-11-13: 02026-11-14: 12026-11-142026-11-15: 02026-11-16: 02026-11-162026-11-17: 02026-11-18: 12026-11-182026-11-19: 02026-11-20: 02026-11-202026-11-21: 02026-11-22: 02026-11-222026-11-23: 12026-11-24: 02026-11-242026-11-25: 12026-11-26: 02026-11-262026-11-27: 02026-11-28: 02026-11-282026-11-29: 02026-11-30: 12026-11-302026-12-01: 02026-12-02: 02026-12-022026-12-03: 02026-12-04: 42026-12-04

The values

MonthPosts
2026-066.0
2026-078.0
2026-088.0
2026-099.0
2026-107.0
2026-119.0
2026-124.0
use laravel_trend::Trend;

let monthly = Trend::model(Post::query())
    .between(six_months_ago, now)
    .per_month()
    .count()
    .await?;

for value in monthly {
    // "2026-11": 8
    println!("{}: {}", value.date, value.aggregate);
}
Özkan Özcan

Available for new projects

Hire the developer behind these packages

I am Özkan Özcan. I ported, tested and published every package in this demo, and I can do the same for your code:

  • Port your Laravel package or application to Laravel Rust
  • Move one slow service first and keep the rest in PHP
  • Priority support and custom features for any OzSuite package
Start a project See my services

I reply within one working day.