Pivot::belongsToMany()

BelongsToMany belongsToMany(string $related, string $table = null, string $foreignKey = null, string $otherKey = null, string $relation = null)

Define a many-to-many relationship.

Parameters

string $related
string $table
string $foreignKey
string $otherKey
string $relation

Return Value

BelongsToMany
doc_Laravel
2016-11-02 16:31:51
Comments
Leave a Comment

Please login to continue.