Skip to content

Using inRandomOrder always returns the same data, making random data retrieval ineffective. #58520

@augusl

Description

@augusl

Laravel Version

11.48.0

PHP Version

8.3.30

Database Driver & Version

No response

Description

Using inRandomOrder always returns the same data, making random data retrieval ineffective.

Steps To Reproduce

It was caused by this commit, where type casting to int was enforced.

8eca02a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions