BelongsToMany::toggle()

array toggle(mixed $ids, bool $touch = true)

Toggles a model (or models) from the parent.

Each existing model is detached, and non existing ones are attached.

Parameters

mixed $ids
bool $touch

Return Value

array
doc_Laravel
2016-11-02 16:07:42
Comments
Leave a Comment

Please login to continue.