#363
jacob_smith
Participant

So basically I am attaching a model in a many to many relationship in livewire component:

Livewire component:

public $model;

public function attach($modeltoAttached) {

$this -> model() -> attach($modeltoAttached);

}