perMinute() over large datasets) may generate expensive queries, especially without proper indexing.created_at/updated_at columns and potentially query optimization (e.g., limiting date ranges).where() + orWhere() + custom aggregations) could lead to unreadable or inefficient queries.composer.json constraints).min, max, avg, or count (e.g., percentiles, custom SQL functions)?composer.json for exact version)./api/trends/users).composer require flowframe/laravel-trend.laravel-trend.TrendService facade).^10.0 or ^11.0).where, orderBy, select).perHour() for 10 years of data) can be resource-intensive.$trend = Cache::remember("trend:users:monthly:{$year}", now()->addHours(1), fn() => Trend::model(User::class)->perMonth()->count());
created_at/updated_at; if these are incorrect, trends are wrong.perDay()->count()).Trend class to test controllers/services consuming trends.SELECT *, using select()).How can I help you explore Laravel packages today?