Skip to content

Commit 97d8c43

Browse files
committed
Update Searcher.php
1 parent af12776 commit 97d8c43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Searcher.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ public function add($query, $columns = null, string $orderByColumn = 'updated_at
134134
return $this;
135135
}
136136

137+
/**
138+
* Set the 'orderBy' column of the latest added model.
139+
*
140+
* @param string $orderByColumn
141+
* @return self
142+
*/
137143
public function orderBy(string $orderByColumn): self
138144
{
139145
$this->modelsToSearchThrough->last()->orderByColumn($orderByColumn);

0 commit comments

Comments
 (0)