update marketing
All checks were successful
All checks were successful
This commit is contained in:
32
Modules/MarketingAddon/App/Models/Smsgateway.php
Normal file
32
Modules/MarketingAddon/App/Models/Smsgateway.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\MarketingAddon\App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class Smsgateway extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'type_id',
|
||||
'business_id',
|
||||
'priority',
|
||||
'status',
|
||||
'params',
|
||||
'namespace',
|
||||
'driver',
|
||||
'channel',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'params' => 'json',
|
||||
];
|
||||
|
||||
public function type()
|
||||
{
|
||||
return $this->belongsTo(GatewayType::class, 'type_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user