Class Belongs_To
- Laravel\Database\Eloquent\Query
- Laravel\Database\Eloquent\Relationships\Relationship
- Laravel\Database\Eloquent\Relationships\Belongs_To
Namespace: Laravel\Database\Eloquent\Relationships
Located at laravel/database/eloquent/relationships/belongs_to.php
Located at laravel/database/eloquent/relationships/belongs_to.php
public
Model
|
|
public
integer
|
|
protected
|
|
public
|
#
initialize( array & $parents, string $relationship )
Initialize a relationship on an array of parent models. |
public
|
#
eagerly_constrain( array $results )
Set the proper constraints on the relationship table for an eager load. |
public
|
|
public
mixed
|
|
public
Eloquent
|
__construct(),
foreign(),
foreign_key(),
fresh_model(),
keys(),
with()
|
__call(),
connection(),
find(),
first(),
get(),
hydrate(),
load(),
model_includes(),
nested_includes(),
paginate(),
table()
|
$base
|
$includes,
$model,
$passthru,
$table
|