mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 23:01:07 +03:30
add rahyab notification service
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
||||
|
||||
class Sms extends Model
|
||||
{
|
||||
|
||||
use BasicModel;
|
||||
|
||||
protected $fillable = [
|
||||
'client_id' , 'status_code' , 'status' , 'message' , 'rel_id' , 'rel_type' , 'cell_number' , 'segment_count' ,
|
||||
];
|
||||
|
||||
protected $hidden = [];
|
||||
|
||||
public static function getTableName(): string
|
||||
{
|
||||
return "sms";
|
||||
}
|
||||
|
||||
public function receiver(): MorphTo
|
||||
{
|
||||
return $this->morphTo( null , 'rel_type' , 'rel_id' );
|
||||
}
|
||||
|
||||
public function smsBatch(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo( SmsBatch::class );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user