Example code for many-to-many relationships in laravel using eloquent orm.