python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Error "Array to string conversion" in relationship belogsToMany in laravel 8
I save data reqNumber in master table
in model product
public function orders(){ return $this->belongsToMany(Order::class); }
in model order
public function products(){ return $this->belongsToM...
morteza kia
Votes: 0
Answers: 1
BelongsToMany independent child's relations - Laravel/Eloquent
Model structure:
FoodCategory - hasMany: Food
Food - belongsToMany: AccessoryGroup | belongsTo: FoodCategory
AccessoryGroup - hasMany: Accessory | belongsToMany: Food
Accessory - belongsTo: AccessoryG...
Jan Grb
Votes: 0
Answers: 1
Deep relations, *child* relation depends on *great-grandparent* id - with | load - Laravel/Eloquent
I have this DB/Model structure (example):
*Food Category ------------ (id, name) - *irrelevant
Foods ---------------------- (id, food_category_id, name, ...)
Accessory Groups --------- (id, name, ...)...
Jan Grb
Votes: 0
Answers: 2