<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SmsTemplate extends Model
{
    use HasFactory;
    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [
        'company_id',
        'template_use_for',
        'template_id',
        'sender_id',
        'sms_signature',
        'template_format',
        'status',
        'sms_body',
        'sms_title'
    ];
    public function getComapnyName()
    {
            return $this->hasOne(Company::class,'id','company_id');
    }
}
