<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace ModulesGarden\HostingQuotaNotifications\App\Helper\Models;
use \ModulesGarden\HostingQuotaNotifications\Core\Models\Whmcs;


/**
 * Description of TicketDepartment
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class TicketDepartment
{
    public static function getDepartmentsIDkeyNAMEvalue()
    {
        return Whmcs\TicketDepartment::select('id', 'name')->orderBy('name')->get()->pluck('name', 'id')->toArray();
    }
}
