You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've not been following all these new features about Factories and maybe this question is resolved somewhere (I couldn't find any info).
The new HasFactory trait in Laravel 8.x is intended to be included in every model that we create? Why? Why can't it be included in Illuminate\Database\Eloquent\Model directly?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I've not been following all these new features about Factories and maybe this question is resolved somewhere (I couldn't find any info).
The new
HasFactory
trait in Laravel 8.x is intended to be included in every model that we create? Why? Why can't it be included inIlluminate\Database\Eloquent\Model
directly?Not a big deal, just curious.
Beta Was this translation helpful? Give feedback.
All reactions