python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to send relational data from multiple foreach to view in Laravel
I made a Laravel project where Category, Subcategory and Child category working using same table relation.
I want to show all products from childcategory when click to Main Category.
So for that I nee...
Abir Husain
Votes: 0
Answers: 2
Assigning one or more clinicians (user role_id =2) to patient in Laravel (Many to Many)
My app have a few misunderstanding i need help with. These are listed as follows:
A clinician can be assigned to one or more patient/s by the admin.
In a clinician backend he/she can only view profil...

Bujj Herbert
Votes: 0
Answers: 1
Laravel eager loading with where() from its relation
I have 3 tables that have relations
Budgets Table :
Field
Type
Null
Key
Default
Extra
id
bigint(20) unsigned
NO
PRI
NULL
auto_increment
user_id
bigint(20) unsigned
NO
MUL
NULL
purpose
var...
owf
Votes: 0
Answers: 2
Relationship is returning null even when from the database the data exists
I have been getting an empty array when I query this model relationship for data. I have tried pulling all the data associated with the model from the database and I still do not get the data even tho...

Favour Max-Oti
Votes: 0
Answers: 0