<?php

namespace App\Models;

use App\Models\traits\SetConnection;
use Illuminate\Database\Eloquent\Model;

class CustomVoice extends Model
{
    use SetConnection;

    const CREATED_AT = null;
    const UPDATED_AT = null;

    protected $fillable = ['company_id', 'code', 'type', 'name', 'contents'];

    public static function getData($cid)
    {
        $result = CustomVoice::where('company_id', '=', $cid)->get();
        return $result;
    }



}
