nanosanteservice/app/Models/NhAct.php

47 lines
852 B
PHP
Raw Permalink Normal View History

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class NhAct
*
* @property int $id
* @property int $nh_network_config_id
2021-11-19 16:07:42 +00:00
* @property string $code
* @property string $name
* @property string $billing_type
* @property string $authorization_type
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @package App\Models
*/
class NhAct extends Model
{
protected $table = 'nh_acts';
protected $casts = [
'nh_network_config_id' => 'int'
];
protected $fillable = [
'nh_network_config_id',
2021-11-19 16:07:42 +00:00
'code',
'name',
'billing_type',
'authorization_type'
];
public function network_config()
{
return $this->belongsTo(NhNetworksConfig::class, 'nh_network_config_id');
}
}