mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-27 16:34:00 +00:00
Laravel Vapor - debug billingData.csv cannot be exported
This commit is contained in:
@@ -53,7 +53,11 @@ class ExportsAnalyticBillingTransactions implements FromCollection, WithHeadings
|
||||
*/
|
||||
public function collection()
|
||||
{
|
||||
return Transaction::where('type', 3)->where('created_at', '>=', Carbon::now()->subYear())->get();
|
||||
return Transaction::where('type', 3)
|
||||
->where('created_at', '>=', Carbon::now()->subYear())
|
||||
->orderBy('created_at', 'desc')
|
||||
->take(10)
|
||||
->get();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user