osb/app/Models/SupplierDetail.php
2022-02-02 10:43:59 +11:00

21 lines
297 B
PHP

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