two models Site and Language share a many-to-many relationship (they are bi-directional) How do I add a relationship between them?
Ideally I want to do this : (add an existing language to a new Site)
$site = new Site(); $site->name = "Google" $site->url = "www.google.com";
---- code to add language----
$site->save();
Or should I only add the language after calling save() and if so how is that done?
Thanks in advance