Laravel - 1066 Not unique table/alias on a relationship
问题 I'm trying to create a simple relationship between tables : - attribute_type - id name - category - id name description So I created a pivot table to link them : - attribute_type_category - attribute_type_id category_id There is the model relationships : On AttributeType.php public function category() { return $this->belongsToMany('App\AttributeTypeCategory', 'attribute_type_category', 'attribute_type_id', 'category_id'); } On AttributeTypeCategory.php public function category() { return