hasOne(Project::class, 'id', 'project_id')->field('id,name'); } public function dishes() { return $this->hasOne(Dishes::class, 'id', 'dishes_id')->field('id,name'); } public function product() { return $this->hasOne(Product::class, 'id', 'product_id')->field('id,name'); } public function unit() { return $this->hasOne(ProductUnit::class, 'id', 'unit_id')->field('id,name'); } }