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

Installation Failed. #48

Closed
its4nas opened this issue May 24, 2024 · 5 comments
Closed

Installation Failed. #48

its4nas opened this issue May 24, 2024 · 5 comments

Comments

@its4nas
Copy link

its4nas commented May 24, 2024

When I try to install the last version of toastr I get the following error

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
so I can't get the last version of toastr.

@yoeunes
Copy link
Owner

yoeunes commented May 25, 2024

Hello Anas,

Thank you for reaching out, could you please provide the following details:

  • PHP Version
  • Laravel Version
  • Error Logs: Any specific error messages that are displayed during the installation failure.
  • Screenshots: If possible, a screenshot of the error message you're seeing could be very helpful.

@its4nas
Copy link
Author

its4nas commented May 30, 2024

My PHP version is 8.2.4
I use Laravel 10
image

@yoeunes
Copy link
Owner

yoeunes commented May 30, 2024

Hello Anas,

Thank you for providing the details. I wanted to inform you that yoeunes/toastr is now a deprecated package. It primarily serves as a means to seamlessly integrate PHPFlasher into projects. The error you are encountering may be due to the fact that you are using Laravel 10, which is not compatible with the latest version of yoeunes/toastr.

To address this, I recommend installing version 2 of yoeunes/toastr, which is compatible with Laravel 10. You can do this by running the following command:

composer require yoeunes/toastr:^2.3

For future projects, consider directly using PHPFlasher, as yoeunes/toastr in its newer versions (v3 and above) will primarily act as a wrapper for installing PHPFlasher. The newer versions are compatible with Laravel v11.

If you have further questions or need additional assistance, please feel free to reach out.

Best regards,
Younes

@its4nas
Copy link
Author

its4nas commented May 31, 2024

Thank you, brother, it works with version 2.3
I will try to add PHPFlasher in the next project.

@its4nas its4nas closed this as completed May 31, 2024
@yoeunes
Copy link
Owner

yoeunes commented May 31, 2024

Salamou 3alaykoum Anas, i'm glad it works

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