cannot upgrade laravel version to 7 from 6.20.8 - laravel

this is my composer.json
"require": {
"php": "^7.2.5",
"fideloper/proxy": "^4.4",
"laravel/framework": "^7.29",
"laravel/socialite": "^4.3",
"laravel/tinker": "^2.5",
"laravel/ui": "1.1",
"maatwebsite/excel": "^3.1",
"simplesoftwareio/simple-qrcode": "^2.0",
"twilio/sdk": "^6.0",
"yoeunes/toastr": "^1.2"
},
"require-dev": {
"facade/ignition": "^2.0",
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.3",
"phpunit/phpunit": "^8.5.8"
},
it return requesting for laravel/ui v1.1.0 but i have already installed.
i have tried composer install, composer update but still the same problem.

this is after i tried composer require laravel/ui "^2.4" return result

Related

Composer update hangs when upgrading Laravel

While upgrading from Laravel v6 to v7, composer update gets stuck at 'Updating dependencies'.
Running it in verbose mode gives me this message :
Looking at all rules.
Something's changed, looking at all rules again (pass #4709)
It keeps on checking the rules (infinite passes).
Here is my composer.json file:
{
"require": {
"php": "^7.2.5",
"barryvdh/laravel-dompdf": "^0.8.4",
"beyonic/beyonic-php": "*",
"doctrine/dbal": "^2.8",
"fideloper/proxy": "^4.0",
"giggsey/libphonenumber-for-php": "^8.12",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.4",
"laravel/framework": "7.*",
"laravel/tinker": "^2.0",
"maatwebsite/excel": "^3.1",
"nesbot/carbon": "^2.31.0",
"phpoffice/phpspreadsheet": "^1.17",
"tymon/jwt-auth": "^1.0.0-rc.4.1"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.2",
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^8.5"
}
Some dependencies are not compatible after we upgrade the version of Laravel. According to Laravel document, you must upgrade the version of the following dependencies.
(https://laravel.com/docs/7.x/upgrade#updating-dependencies)
laravel/framework to ^7.0
nunomaduro/collision to ^4.1
phpunit/phpunit to ^8.5
laravel/tinker to ^2.0
facade/ignition to ^2.0
Note:
You should also check the versions of the remaining dependencies.

What is causing a slow Laravel 8 website?

I have migrated one website from Laravel 5.7 to Laravel 8.
On localhost, everything seems to work fine, unfortunately on my webserver sometimes pages get loaded very slot. It can take more than 20+ seconds to load the contact page. On that page, there is just one MySQL query.
The Timeline debugbar is showing just the time to load the page, but nothing more.
I am posting here all my packages, maybe some on them is causing this?
"require": {
"php": "^7.3|^8.0",
"albertcht/invisible-recaptcha": "^1.9",
"arcanedev/log-viewer": "8.x",
"darkghosthunter/laraguard": "dev-master",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"intervention/image": "^2.5",
"jamesmills/laravel-timezone": "^1.9",
"jenssegers/agent": "^2.6",
"lab404/laravel-impersonate": "^1.6",
"langleyfoxall/laravel-nist-password-rules": "^4.1",
"laravel/framework": "^8.12",
"laravel/socialite": "^5.0",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.0",
"laravelcollective/html": "^6.2",
"livewire/livewire": "^2.0",
"mcamara/laravel-localization": "^1.6",
"predis/predis": "^1.1",
"rappasoft/laravel-livewire-tables": "^0.3",
"rappasoft/lockout": "^3.0",
"romanzipp/laravel-twitch": "^4.0",
"spatie/laravel-activitylog": "^3.14",
"spatie/laravel-html": "^2.28",
"spatie/laravel-image-optimizer": "^1.6",
"spatie/laravel-permission": "^3.11",
"stichoza/google-translate-php": "^4.1",
"tabuna/breadcrumbs": "^2.2",
"thujohn/twitter": "^2.3"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"barryvdh/laravel-debugbar": "^3.2",
"barryvdh/laravel-ide-helper": "^2.6",
"codedungeon/phpunit-result-printer": "^0.29",
"facade/ignition": "^2.5",
"friendsofphp/php-cs-fixer": "^2.16",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^0.0.5",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
}
I don't have any clue how to solve this problem. Will appreciate every tip or tool on how to analyze my pages.

Please provide a valid cache path Laravel deployment to GCP¨

I got this error when I'm trying to deploy my laravel project to GCP.
I deploy the same project in Heoku I don't have any problem and the project.
Step #1: [29-Aug-2020 20:37:05 UTC] [2020-08-29 20:37:05] local.ERROR: Please provide a valid cache path. {"exception":"[object] (InvalidArgumentException(code: 0): Please provide a valid cache path. at /app/vendor/laravel/framework/src/Illuminate/View/Compilers/Compiler.php:36)
My composer.json
"require": {
"php": "^7.1.3",
"ext-gd": "*",
"barryvdh/laravel-dompdf": "^0.8.6",
"bitfumes/laravel-multiauth": "^3.0",
"bodunde/geocoder": "^1.2",
"consoletvs/charts": "6.*",
"fideloper/proxy": "^4.0",
"fx3costa/laravelchartjs": "^2.7",
"fzaninotto/faker": "^1.4",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "5.8.*",
"laravel/tinker": "^1.0",
"maatwebsite/excel": "^3.1",
"spatie/geocoder": "^3.5",
"twilio/sdk": "^6.9"
},
"require-dev": {
"filp/whoops": "^2.0",
"laravel/ui": "^1.1",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},

Moving from laravel 6 to 7x getting this error, arcanedev/laravel-messenger 7.2.0 requires arcanedev/support ^5.1

Moving from laravel 6 to 7x getting this error, arcanedev/laravel-messenger 7.2.0 requires arcanedev/support ^5.1
This is the error while i run composer update
This is composer.json file
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"arcanedev/laravel-messenger": "7.2",
"cboden/ratchet": "^0.4.2",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.4",
"laravel/cashier": "^10.5",
"laravel/framework": "7.0.*",
"laravel/nexmo-notification-channel": "^2.3",
"laravel/tinker": "^2.0",
"php-imap/php-imap": "^4.1",
"pusher/pusher-php-server": "^4.0",
"spatie/laravel-permission": "^3.13.0",
"twilio/sdk": "^6.6",
"webklex/laravel-imap": "^1.4"
},
"require-dev": {
"facade/ignition": "^2.0",
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.9.1",
"laravel/ui": "^2.0.0",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
I can not post complete Composer.json file here getting this error while i posting my question, so i attached another screenshot of my composer.json file
screenshot of my composer.json file
Can anyone help me out? Thank you!

composer require appointer/swaggervel --dev problem with laravel v7.0

When i run the command composer require appointer/swaggervel --dev to added this package to my project i have this error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for appointer/swaggervel ^2.5 -> satisfiable by appointer/swaggervel[v2.5].
- Conclusion: remove laravel/framework v7.8.1
- Conclusion: don't install laravel/framework v7.8.1
I did not understand what this error is and how I can correct it.
thank you in advance for answering my question.
Note : this is my composer.json file :
"require": {
"php": "^7.2.5",
"darkaonline/l5-swagger": "^7.0",
"doctrine/dbal": "~2.3",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"infyomlabs/adminlte-templates": "7.0.x-dev",
"infyomlabs/laravel-generator": "7.0.x-dev",
"infyomlabs/swagger-generator": "dev-master",
"laravel/framework": "^7.0",
"laravel/helpers": "^1.2",
"laravel/passport": "^8.4",
"laravel/tinker": "^2.0",
"laravelcollective/html": "^6.1",
"spatie/laravel-permission": "^3.11",
"zircote/swagger-php": "2.*"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
this error can be resolved unsing this laravel package
composer require dagbouj-hatem/swaggervel --dev
This means that the package you are trying to install doesn't support your current version of Laravel (7.8.1)
You can see below the code of the package composer.json:
"require": {
"php": ">=5.6.0",
"illuminate/support": "^5.0|^6.0",
"swagger-api/swagger-ui": "^3.1",
"zircote/swagger-php": "^2.0"
},

Resources