31 lines
532 B
PHP
31 lines
532 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SmsSender extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'sms_senders';
|
|
|
|
protected $fillable = [
|
|
'profile_id',
|
|
'sname',
|
|
'phone_number',
|
|
'description',
|
|
'active',
|
|
];
|
|
|
|
protected $casts = [
|
|
'active' => 'boolean',
|
|
];
|
|
|
|
public function profile()
|
|
{
|
|
return $this->belongsTo(SmsProfile::class, 'profile_id');
|
|
}
|
|
}
|