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

install with laravel 10 #182

Open
ali635 opened this issue Aug 20, 2023 · 7 comments
Open

install with laravel 10 #182

ali635 opened this issue Aug 20, 2023 · 7 comments

Comments

@ali635
Copy link

ali635 commented Aug 20, 2023

Problem 1
- Root composer.json requires renatomarinho/laravel-page-speed ^2.1 -> satisfiable by renatomarinho/laravel-page-speed[2.1.0].
- renatomarinho/laravel-page-speed 2.1.0 requires illuminate/support ^6.0 || ^7.0 || ^8.0 || ^9.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.15] but these were not loaded, likely because it conflicts with another require.

@AyushMahatara
Copy link

"require": {
"php": "^8.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5 || ^9.0|| ^10.0",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0|| ^8.0",
"squizlabs/php_codesniffer": "^3.6 || ^3.7",
"mockery/mockery": "^1.4"
},

vendor/renatomarinho folder remove this package first
and run command

composer update

may be this will help

@ali635
Copy link
Author

ali635 commented Aug 20, 2023

"require": { "php": "^8.0", "illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" }, "require-dev": { "phpunit/phpunit": "^8.5 || ^9.0|| ^10.0", "orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0|| ^8.0", "squizlabs/php_codesniffer": "^3.6 || ^3.7", "mockery/mockery": "^1.4" },

vendor/renatomarinho folder remove this package first and run command

composer update

may be this will help

i try this solution but problem still existing

@ali635 ali635 changed the title istall with laravel 9 istall with laravel 10 Aug 20, 2023
@madushancs
Copy link

Find any solution?

@ali635
Copy link
Author

ali635 commented Sep 21, 2023

Find any solution?
no

@ali635 ali635 changed the title istall with laravel 10 install with laravel 10 Sep 21, 2023
@washonrails
Copy link

washonrails commented Oct 7, 2023

Hi @madushancs , @ali635
I had the same problem, I use laravel 10.x and I had to install the package using "dev-master" as the branch, here is how I did it:
It's the same configuration process, you just change the project branch

php composer require renatomarinho/laravel-page-speed dev-master

Captura de tela de 2023-10-07 17-49-48

proofs that it worked ! :

Normal site/aplication without using laravel-page-speed:
Captura de tela de 2023-10-07 17-54-25

Source code of my site/aplication in laravel 10.x using laravel-page-speed :
Captura de tela de 2023-10-07 17-54-35

Here is my metrics in lighthouse console tool:
Captura de tela de 2023-10-07 17-22-53

Don't ask me how I know this, it was a lot of time researching on forums, debating about it, and a lot of debugging, even today I don't know how I discovered it haha

So if this helped you in any way, I humbly ask you to close the issue and tag Renato (project developer) so he can see this and put it in the readme or even fix this...... bug? , in short, so that we can help more people who need this package. hugs

@junsgo
Copy link

junsgo commented Dec 28, 2023

Hi @madushancs , @ali635 I had the same problem, I use laravel 10.x and I had to install the package using "dev-master" as the branch, here is how I did it: It's the same configuration process, you just change the project branch

php composer require renatomarinho/laravel-page-speed dev-master

Captura de tela de 2023-10-07 17-49-48

proofs that it worked ! :

Normal site/aplication without using laravel-page-speed: Captura de tela de 2023-10-07 17-54-25

Source code of my site/aplication in laravel 10.x using laravel-page-speed : Captura de tela de 2023-10-07 17-54-35

Here is my metrics in lighthouse console tool: Captura de tela de 2023-10-07 17-22-53

Don't ask me how I know this, it was a lot of time researching on forums, debating about it, and a lot of debugging, even today I don't know how I discovered it haha

So if this helped you in any way, I humbly ask you to close the issue and tag Renato (project developer) so he can see this and put it in the readme or even fix this...... bug? , in short, so that we can help more people who need this package. hugs

good

@Rikj000
Copy link

Rikj000 commented Feb 13, 2024

I use laravel 10.x and I had to install the package using "dev-master" as the branch,
here is how I did it: It's the same configuration process, you just change the project branch

php composer require renatomarinho/laravel-page-speed dev-master

@renatomarinho, I can confirm that dev-master works correctly on Laravel 10,
can we get a version bump with these changes so we don't have to rely on referencing a non-static master branch?

This will also stop the duplicate issues and PRs from flowing in.

Linked (duplicate) issues:

Linked (duplicate) PRs:

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

6 participants