Download the PHP package paxha/laravel-reportable without Composer
On this page you can find all versions of the php package paxha/laravel-reportable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download paxha/laravel-reportable
More information about paxha/laravel-reportable
Files in paxha/laravel-reportable
Download paxha/laravel-reportable
More information about paxha/laravel-reportable
Files in paxha/laravel-reportable
Vendor paxha
Package laravel-reportable
Short Description This Laravel Eloquent extension provides record according to dates using models.
License MIT
Package laravel-reportable
Short Description This Laravel Eloquent extension provides record according to dates using models.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-reportable
Laravel Report Generator
Introduction
This Laravel Eloquent extension provides record according to dates using models.
This package provides an event that will generate a unique slug when saving or creating any Eloquent model.
Installation
composer require paxha/laravel-reportable
Usage
- Getting Started
- Scopes
- Yearly Report
- ThisYear Report
- LastYear Report
- Monthly Report
- ThisMonth Report
- LastMonth Report
- This Week Report
- Last Week Report
- Daily Report
- Today Report
- Yesterday Report
- Hourly Report
- Custom Query
- Advanced Usage
Getting Started
Consider the following table schema for hierarchical data:
Use the Reportable
trait in your model to work with reports:
Scopes
The trait provides query scopes to filter data by datetime:
yearlyReport($year = null)
: provide year-wise record. By default it will provide current year record.thisYearReport()
: provide current year record.lastYearReport()
: provide previous year record.monthlyReport($month = null, $year = null)
: provide month-wise record. By default it will provide current month.thisMonthReport()
: provide current month record.lastMonthReport()
: provide last month record.thisWeekReport()
: provide this week record. (mon - sun)lastWeekReport()
: provide last week record. (mon - sun)dailyReport($date = null)
: provide date-wise record. By default it will provide today's record.todayReport()
: provide today record.yesterdayReport()
: provide yesterday record.hourlyReport($from = null, $to = null, $date = null)
: provide hour-wise record. By default it will provide records between last hour to current hour.
Yearly Report
This Year Report
Last Year Report
Monthly Report
This Month Report
Last Month Report
This Week Report
Last Week Report
Daily Report
Today Report
Yesterday Report
Hourly Report
Custom Query
You can implement your own conditions or do whatever you want with query.
Advanced Usage
License
This is open-sourced laravel library licensed under the MIT license.
All versions of laravel-reportable with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2|^8.0
The package paxha/laravel-reportable contains the following files
Loading the files please wait ....