belongsToMany(Usuario::class, 'usuarios_restaurantes', 'restaurante_id', 'usuario_id'); } public function canalesVenta() { return $this->hasMany(CanalVenta::class, 'restaurante_id'); } public function sectores() { return $this->hasMany(Sector::class, 'restaurante_id'); } public function zonasProduccion() { return $this->hasMany(ZonaProduccion::class, 'restaurante_id'); } public function categorias() { return $this->hasMany(Categoria::class, 'restaurante_id'); } public function proveedores() { return $this->hasMany(Proveedor::class, 'restaurante_id'); } public function ingredientes() { return $this->hasMany(Ingrediente::class, 'restaurante_id'); } }