Skip to content

inRandomOrder return same result #119

Closed
@tradzero

Description

@tradzero

Issue

when i use inRandomOrder to get random result, but i got same result. i know it's may cause by cache. so is it possible to get different result by use some like shuffle ?

Environment

Laravel Version: 5.6.12
Laravel Model Caching Package Version: 0.2.52
PHP Version: 7.2.1
Homestead Version: not use
Operating System & Version: mac os 10.12.6

Stack Trace

Sponsor::currentSeason()
                ->where('type', Sponsor::TYPE_MEDIA)
                ->inRandomOrder()
                ->first();

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions