laravel-nova/belongs-to-many-component

A component for interacting with many-through-many relationships through the admin panel

dev-main 2024-09-23 09:08 UTC

This package is auto-updated.

Last update: 2025-04-23 10:34:51 UTC


README

Install

composer require laravel-nova/belongs-to-many-component
  1. A component for interacting with many-through-many relationships through the admin panel Image 1
  2. Create a pivot model with migration following the ModelaModelb convention
  3. The foreign keys in the pivot model must be within the naming convention and correspond to the format modela_id and modelb_id
  4. In order for the link search to work, it is necessary to hang the search trace from Laravel Scout in the subject model Image 2