HasOneOrMany::__construct()
  • References/PHP/Laravel/Database/Eloquent/Relations

void __construct(Builder $query,

2025-01-10 15:47:30
MorphOneOrMany::matchOne()
  • References/PHP/Laravel/Database/Eloquent/Relations

array matchOne(array $models, Collection $results

2025-01-10 15:47:30
Pivot::syncOriginalAttribute()
  • References/PHP/Laravel/Database/Eloquent/Relations

$this syncOriginalAttribute(string $attribute) Sync a single original attribute

2025-01-10 15:47:30
MorphOneOrMany::getHasCompareKey()
  • References/PHP/Laravel/Database/Eloquent/Relations

string getHasCompareKey() Get the key for comparing against the parent

2025-01-10 15:47:30
MorphMany::getForeignKey()
  • References/PHP/Laravel/Database/Eloquent/Relations

string getForeignKey() Get the foreign key for the relationship.

2025-01-10 15:47:30
Pivot::unguard()
  • References/PHP/Laravel/Database/Eloquent/Relations

static void unguard(bool $state = true) Disable all mass assignable

2025-01-10 15:47:30
MorphOneOrMany::getMorphType()
  • References/PHP/Laravel/Database/Eloquent/Relations

string getMorphType() Get the foreign key "type" name.

2025-01-10 15:47:30
MorphOneOrMany::getPlainForeignKey()
  • References/PHP/Laravel/Database/Eloquent/Relations

string getPlainForeignKey() Get the plain foreign key.

2025-01-10 15:47:30
MorphMany::firstOrCreate()
  • References/PHP/Laravel/Database/Eloquent/Relations

Model firstOrCreate(array $attributes)

2025-01-10 15:47:30
MorphOneOrMany::__clone()
  • References/PHP/Laravel/Database/Eloquent/Relations

void __clone() Force a clone of the underlying query builder when cloning

2025-01-10 15:47:30