I have one question that is not only specific to this project but you also used it, so maybe you can shortly help me or point to some resource.
I can figure out how the pivot table tag_trick is managing the many to many relationship.
I found in Trick model the : protected $with = [ 'tags', 'categories', 'user' ]; (which is related to eager loading), and the standard belongsToMany methods, but I am wondering is this enough to create a new pivot table? e.g. subcategories, is it enough to set the belong to relationship, and laravel itself is managing it?
In short how the application knows about pivot table tag_trick?
thanks in advance, and if its off topic you can close it.
Hi ,
I have one question that is not only specific to this project but you also used it, so maybe you can shortly help me or point to some resource. I can figure out how the pivot table tag_trick is managing the many to many relationship. I found in Trick model the : protected $with = [ 'tags', 'categories', 'user' ]; (which is related to eager loading), and the standard belongsToMany methods, but I am wondering is this enough to create a new pivot table? e.g. subcategories, is it enough to set the belong to relationship, and laravel itself is managing it?
In short how the application knows about pivot table tag_trick?
thanks in advance, and if its off topic you can close it.