osb/app/Models/SupplierDetail.php

21 lines
297 B
PHP
Raw Normal View History

2021-12-20 03:25:43 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Traits\SiteID;
class SupplierDetail extends Model
{
use SiteID;
protected $casts = [ 'connections'=>'collection' ];
2021-12-20 03:25:43 +00:00
/* RELATIONS */
public function supplier()
{
return $this->belongsTo(Supplier::class);
}
}