Class HasOneFromRepository
Relation for fetching one related model from repositories instead of models
- Illuminate\Database\Eloquent\Relations\HasOne
- rsanchez\Deep\Relations\HasOneFromRepository
public
|
#
__construct( Illuminate\Database\Eloquent\Builder $query, Illuminate\Database\Eloquent\Model $parent, string $foreignKey, string $localKey,
|
public
|
|
public
|
|
public
|
protected
|
$repository |
|
|
protected
string
|
$repositoryMethod |
|
#
The repository method used when filling out the relationship |