/home/techb158/exp.abdallabala.com/vendor/illuminate/database/Eloquent/Relations
NameSizeModeActions
Concerns/-0755rm
BelongsTo.php107910644editdlrm
BelongsToMany.php306400644editdlrm
HasMany.php11750644editdlrm
HasManyThrough.php184890644editdlrm
HasOne.php17670644editdlrm
HasOneOrMany.php115600644editdlrm
HasOneThrough.php21290644editdlrm
MorphMany.php11790644editdlrm
MorphOne.php18480644editdlrm
MorphOneOrMany.php31090644editdlrm
MorphPivot.php37720644editdlrm
MorphTo.php87870644editdlrm
MorphToMany.php52440644editdlrm
Pivot.php4550644editdlrm
Relation.php101110644editdlrm
Edit: /home/techb158/exp.abdallabala.com/vendor/illuminate/database/Eloquent/Relations/MorphOne.php (1848B)
getParentKey())) { return $this->getDefaultFor($this->parent); } return $this->query->first() ?: $this->getDefaultFor($this->parent); } /** * Initialize the relation on a set of models. * * @param array $models * @param string $relation * @return array */ public function initRelation(array $models, $relation) { foreach ($models as $model) { $model->setRelation($relation, $this->getDefaultFor($model)); } return $models; } /** * Match the eagerly loaded results to their parents. * * @param array $models * @param \Illuminate\Database\Eloquent\Collection $results * @param string $relation * @return array */ public function match(array $models, Collection $results, $relation) { return $this->matchOne($models, $results, $relation); } /** * Make a new related instance for the given model. * * @param \Illuminate\Database\Eloquent\Model $parent * @return \Illuminate\Database\Eloquent\Model */ public function newRelatedInstanceFor(Model $parent) { return $this->related->newInstance() ->setAttribute($this->getForeignKeyName(), $parent->{$this->localKey}) ->setAttribute($this->getMorphType(), $this->morphClass); } }