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)
Error : "Trying to get property 'id' of non-object" with Foreign keys on Laravel8
I want to write a correct PostFactory for seed my DB with Laravel8
I follow the documentation on Laravel8 for make my Factory for seed my database
https://laravel.com/docs/8.x/seeding#using-model-fact...
Fradé
Votes: 0
Answers: 1
Why does "info()" not work even though the "read" field changes?
I have a factory function, where I am returning a Book Object. When I create an object of the Book and change a field value, this is not reflected in the method of the Object. Any idea why this may be...
Sahl
Votes: 0
Answers: 2
Why am I getting a cannot find symbol error in my factory class
I'm trying to create a factory that contains chart types but I'm getting a cannot find symbol error on my this.map.put(chart.nc); under nc and I have no idea why, can anyone tell me what I'm doing wro...
J52677
Votes: 0
Answers: 0
How to return and persist the null in a factory constructor?
I have a problem with the migration to null-safety of flutter, I know that in a factory it should no longer return null so I return throw ArgumentError(""), however in my services I bring th...
Daniel Roldán
Votes: 0
Answers: 1