BelongsOrMorphsTo

 trait Winter\Storm\Database\Relations\Concerns\BelongsOrMorphsTo

Methods

public associate (Illuminate\Database\Eloquent\Model $model) : Illuminate\Database\Eloquent\Model

Associate the model instance to the given parent.

Parameters
Property Description
$model
Illuminate\Database\Eloquent\Model
Returns
Illuminate\Database\Eloquent\Model

public dissociate () : Illuminate\Database\Eloquent\Model

Dissociate previously associated model from the given parent.

Returns
Illuminate\Database\Eloquent\Model

Used by

Class Description
BelongsTo
MorphTo
Copyright © 2024 Winter CMS