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 | Type | Description |
---|---|---|
$model | Illuminate\Database\Eloquent\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
← Previous page
Winter\Storm\Database\Relations\Concerns\AttachOneOrMany
Next page →
Winter\Storm\Database\Relations\Concerns\BelongsOrMorphsToMany
Copyright © 2024 Winter CMS