laravel-page-speed icon indicating copy to clipboard operation
laravel-page-speed copied to clipboard

install with laravel 10

Open ali635 opened this issue 1 year ago • 7 comments

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.

ali635 avatar Aug 20 '23 06:08 ali635

"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

AyushMahatara avatar Aug 20 '23 11:08 AyushMahatara

"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 avatar Aug 20 '23 12:08 ali635

Find any solution?

madushancs avatar Sep 16 '23 06:09 madushancs

Find any solution? no

ali635 avatar Sep 21 '23 13:09 ali635

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

washonrails avatar Oct 07 '23 21:10 washonrails

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

junsgo avatar Dec 28 '23 08:12 junsgo

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:

  • https://github.com/renatomarinho/laravel-page-speed/issues/178
  • https://github.com/renatomarinho/laravel-page-speed/issues/171
  • https://github.com/renatomarinho/laravel-page-speed/issues/182

Linked (duplicate) PRs:

  • https://github.com/renatomarinho/laravel-page-speed/pull/175
  • https://github.com/renatomarinho/laravel-page-speed/pull/176
  • https://github.com/renatomarinho/laravel-page-speed/pull/177
  • https://github.com/renatomarinho/laravel-page-speed/pull/183
  • https://github.com/renatomarinho/laravel-page-speed/pull/185

Rikj000 avatar Feb 13 '24 14:02 Rikj000