Many-to-Many Eloquent relationship update with Laravel Form Model Binding & Checkboxes
问题 I have 3 tables: doors id name image colors id name image door_colors id door_id color_id and 2 models with a many-to-many relationship (each door comes in a variety colors, and many colors overlap door-to-door): Door Model class Door extends Eloquent { public function colors() { return $this->belongsToMany('Color', 'door_colors'); } } Color Model class Color extends Eloquent { public function doors() { return $this->belongsToMany('Door', 'door_colors'); } } I want to create a form where I