App\Http\Controllers\InvoiceApiController::index PHP Метод

index() публичный Метод

public index ( )
    public function index()
    {
        $invoices = Invoice::scope()->withTrashed()->with('invoice_items', 'client')->orderBy('created_at', 'desc');
        return $this->listResponse($invoices);
    }