<?php

namespace App\Master\Http\Controllers;

use Mtc\MercuryDataModels\Billable;

class BillableController
{
    /**
     * Get all billables grouped by type
     *
     * @return \Illuminate\Support\Collection
     */
    public function index()
    {
        return Billable::query()
            ->latest()
            ->get()
            ->groupBy('type');
    }
}
