Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trait "Illuminate\Support\Traits\InteractsWithData" not found #53682

Closed
guofuzhang opened this issue Nov 27, 2024 · 5 comments
Closed

Trait "Illuminate\Support\Traits\InteractsWithData" not found #53682

guofuzhang opened this issue Nov 27, 2024 · 5 comments

Comments

@guofuzhang
Copy link

Laravel Version

11

PHP Version

8.2

Database Driver & Version

centos

Description

Fatal error: Trait "Illuminate\Support\Traits\InteractsWithData" not found in vendor/illuminate/http/Concerns/InteractsWithInput.php on line 12,the code is

use Dumpable, InteractsWithData;

but have not InteractsWithData in laravel Illuminate

Steps To Reproduce

Fatal error: Trait "Illuminate\Support\Traits\InteractsWithData" not found in vendor/illuminate/http/Concerns/InteractsWithInput.php on line 12,the code is
use Dumpable, InteractsWithData;

but have not InteractsWithData in laravel Illuminate

@crynobone
Copy link
Member

Hey there, thanks for reporting this issue.

We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here?

Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.

laravel new bug-report --github="--public"

Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue.

Thanks!

@guofuzhang
Copy link
Author

"The problem caused by the asynchronous versions of the illuminate/support and illuminate/http repositories in Laravel."

@crynobone
Copy link
Member

Would still need a reproducing repository as this scenario should be impossible based on Composer specifications

@guofuzhang
Copy link
Author

Problem Summary:

The issue was caused by not setting the correct priority for the private repository. This led to Composer being unable to find the required package versions, as it was prioritizing the wrong repository.

Solution:

I resolved the issue by correctly configuring the repository priorities in the composer.json file. This allowed Composer to fetch the necessary package versions from the appropriate repository.

@guofuzhang
Copy link
Author

example:

"repositories": {
        "counter": {
            "type": "composer",
            "url": "https://xxxx.pkg.net",
            "canonical": false
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants