Skip to content

Commit 3ba3e7c

Browse files
authored
Merge pull request #238 from vlacko0930/readingplans
Add reading plans
2 parents aa777be + dad6ffd commit 3ba3e7c

File tree

3 files changed

+798
-1
lines changed

3 files changed

+798
-1
lines changed

app/Data/Entity/ReadingPlan.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ReadingPlan extends Eloquent {
3030
protected $fillable = ['name', 'description'];
3131

3232
public function days() {
33-
return $this->hasMany('SzentirasHu\\Data\\Entity\\ReadingPlanDay', 'plan_id');
33+
return $this->hasMany('SzentirasHu\\Data\\Entity\\ReadingPlanDay', 'plan_id')->orderBy('day_number');
3434
}
3535

3636
}

0 commit comments

Comments
 (0)