Teren-app/app/Models/SmsSender.php
Simon Pocrnjič 930ac83604 SMS service
2025-10-24 21:39:10 +02:00

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');
}
}