-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10.x] Ordering by model's custom
created_at
column (#801)
* Use Eloquent model's created at timestamp for ordering * Add test * Whoops, re-add test
- Loading branch information
1 parent
280f5b6
commit 24657f0
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Laravel\Scout\Tests\Fixtures; | ||
|
||
use Illuminate\Foundation\Auth\User as Model; | ||
use Laravel\Scout\Searchable; | ||
|
||
class SearchableUserModelWithCustomCreatedAt extends Model | ||
{ | ||
use Searchable; | ||
|
||
protected $table = 'users'; | ||
|
||
public const CREATED_AT = 'created'; | ||
} |