MorphToMany::__construct()

void __construct(Builder $query, Model $parent, string $name, string $table, string $foreignKey, string $otherKey, string $relationName = null, bool $inverse = false)

Create a new morph to many relationship instance.

Parameters

Builder $query
Model $parent
string $name
string $table
string $foreignKey
string $otherKey
string $relationName
bool $inverse

Return Value

void
doc_Laravel
2016-11-02 16:29:52
Comments
Leave a Comment

Please login to continue.