10 months ago

Return of Model::create() versus new Model()

Posted 10 months ago by DevMaster

Hello LaraV.I.P.s

Just wondering if the return types of Model::create() and new Model() are supposed to be the same? Or do they differ?

I ask because I would expect them to be the same, but I'm experiencing different behaviour when using one versus the other (especially in the save() and associate() Eloquent methods).

Best regards, Dev Master

Please sign in or create an account to participate in this conversation.