Method | Description | |
---|---|---|
__call ( string $method, array $parameters ) : mixed | Dynamically call methods. | |
__get ( string $key ) : mixed | Dynamically retrieve attributes. | |
belongsTo ( string $related, string $foreignKey = null, string $otherKey = null, string $relation = null ) : |
Define an inverse one-to-one or many relationship. | |
getPivotAttributes ( string $name ) : array | Return the relationship configurations. | |
getRelationship ( string $name ) : array | Return the relationship configurations. | |
getRelationships ( ) : array | Get the relationships. | |
hasPivotAttributes ( string $name ) : boolean | Return whether the relationshpi has pivot attributes or not. | |
isRelationship ( string $name ) : boolean | Return whether the name is a relationship or not. | |
morphTo ( string $name = null, string $type = null, string $id = null ) : Illuminate\Database\Eloquent\Relations\MorphTo | Define an polymorphic, inverse one-to-one or many relationship. | |
scopeWithout ( Illuminate\Database\Query\Builder $query, mixed $relations ) | Set the relationships that should not be eager loaded. |
Method | Description | |
---|---|---|
callDynamicRelationship ( string $name ) : mixed | Call a dynamically resolved relationship. | |
callRelationship ( string $name ) : mixed | Proxy call a relationship method using the configuration arguments of the relationship. | |
getDynamicRelationship ( string $name ) : mixed | Get a dynamically resolved relationship. |
protected callDynamicRelationship ( string $name ) : mixed | ||
$name | string | |
return | mixed |
protected callRelationship ( string $name ) : mixed | ||
$name | string | of related model |
return | mixed |
protected getDynamicRelationship ( string $name ) : mixed | ||
$name | string | |
return | mixed |
public getPivotAttributes ( string $name ) : array | ||
$name | string | of related model |
return | array |
public getRelationship ( string $name ) : array | ||
$name | string | of related model |
return | array |
public getRelationships ( ) : array | ||
return | array |
public hasPivotAttributes ( string $name ) : boolean | ||
$name | string | of related model |
return | boolean |
public isRelationship ( string $name ) : boolean | ||
$name | string | of related model |
return | boolean |
public scopeWithout ( Illuminate\Database\Query\Builder $query, mixed $relations ) | ||
$query | Illuminate\Database\Query\Builder | |
$relations | mixed |