Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Esensi
Model
Traits
RelatingModelTrait
isRelationship
Esensi\Model\Traits\RelatingModelTrait::isRelationship PHP Method
RelatingModelTrait Trait Documentation
Datei anzeigen
Open project: esensi/model
isRelationship()
public
method
Return whether the name is a relationship or not.
public
isRelationship
(
string
$name
) :
boolean
$name
string
of related model
return
boolean
public function isRelationship($name) { return array_key_exists($name, $this->relationships); }
RelatingModelTrait
__call
__get
belongsTo
callDynamicRelationship
callRelationship
getDynamicRelationship
getPivotAttributes
getRelationship
getRelationships
hasPivotAttributes
isRelationship
morphTo
scopeWithout