Skip to content

Commit

Permalink
Merge pull request #285 from cybercog/feature/thread-get-all-latest-e…
Browse files Browse the repository at this point in the history
…xtensible

Thread method getAllLatest call latest from static
  • Loading branch information
cmgmyr authored Mar 10, 2018
2 parents ef8f2ec + 691051e commit 28a6308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ public function creator()
/**
* Returns all of the latest threads by updated_at date.
*
* @return self
* @return \Illuminate\Database\Query\Builder|static
*/
public static function getAllLatest()
{
return self::latest('updated_at');
return static::latest('updated_at');
}

/**
Expand Down

0 comments on commit 28a6308

Please sign in to comment.