D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
lactobokashi.com
/
app
/
Models
/
Filename :
SmsGateway.php
back
Copy
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class SmsGateway extends Model { protected $table = "sms_gateways"; protected $fillable = ['name', 'slug', 'misc', 'status']; protected $casts = [ 'id' => 'integer', 'name' => 'string', 'slug' => 'string', 'misc' => 'string', 'status' => 'integer', ]; public function gatewayOptions(): \Illuminate\Database\Eloquent\Relations\MorphMany { return $this->morphMany(GatewayOption::class, 'model'); } }