hasMany(Order::class); } public function suppliers() { return $this->hasMany(Supplier::class); } public function primary() { return $this->belongsTo(Supplier::class, 'primary_supplier', 'id'); } }