|
@@ -67,6 +67,12 @@ class Client extends Model
|
|
|
->orderBy('effective_dateest', 'desc');
|
|
|
}
|
|
|
|
|
|
+ public function notesAscending()
|
|
|
+ {
|
|
|
+ return $this->hasMany(Note::class, 'client_id', 'id')
|
|
|
+ ->orderBy('effective_dateest', 'asc');
|
|
|
+ }
|
|
|
+
|
|
|
public function activeNotes()
|
|
|
{
|
|
|
return $this->hasMany(Note::class, 'client_id', 'id')
|