SMS service
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user