public function contactPeople()
{
return $this->belongsToMany(ContactPerson::class, 'power_company_contact_people', 'power_id', 'company_contact_people_id');
}
And ContactPeople model
public function powers()
{
return $this->belongsToMany(Power::class, 'power_company_contact_people');
}
I can't make bricks without clay. Just guessing with lack of code examples you put up and I probably won't come back to this thread again. This is well documented, you're missing something simple. Go back to the documentation and follow it. Everything documented on Filament is documented well, so if you're doing it wrong, it's because the problem is between your chair and the keyboard.