How is a One-to-Many Relationship Defined in Laravel?
Laravel Eloquent represents relationships such as one-to-many using relationship methods. For example, a Category model can define hasMany(Question::class) while the Question model can define belongsTo(Category::class).