Installation lighthouse in laravel 5.7 - laravel

Describe the bug
the lighthouse does not install on laravel 5.7
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install nuwave/lighthouse v2.6.4
- Conclusion: don't install nuwave/lighthouse v2.6.3
- Conclusion: don't install nuwave/lighthouse v2.6.2
- Conclusion: don't install nuwave/lighthouse v2.6.1
- Conclusion: don't install nuwave/lighthouse v2.6.0
- Conclusion: remove webonyx/graphql-php v0.13.1
- Installation request for nuwave/lighthouse ^2.6
-> satisfiable by nuwave/lighthouse[2.x-dev, v2.6.0, v2.6.1, v2.6.2, v2.6.3, v2.6.4].
- Conclusion: don't install webonyx/graphql-php v0.13.1
- nuwave/lighthouse 2.x-dev requires webonyx/graphql-php ^0.12
-> satisfiable by webonyx/graphql-php[0.12.x-dev, v0.12.0, v0.12.1, v0.12.2, v0.12.3, v0.12.4, v0.12.5, v0.12.6].
- Can only install one of: webonyx/graphql-php[0.12.x-dev, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.0, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.1, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.2, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.3, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.4, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.5, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.6, v0.13.1].
- Installation request for webonyx/graphql-php (locked at v0.13.1)
-> satisfiable by webonyx/graphql-php[v0.13.1].

If you have an existing Laravel 5.7 project, all you really need is two steps:
Install via composer require nuwave/lighthouse
Define your schema in graphql/schema.graphql
According to nuwave/lighthouse package you need to php: >= 7.1
Apart from this, you also need to complete the package's requirement in your project

Related

Can't install SweetAlert2 in Laravel 6.0

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for realrashid/sweet-alert ^2.0 -> satisfiable by realrashid/sweet-alert[v2.0].
- Conclusion: remove laravel/framework v6.0.0
- Conclusion: don't install laravel/framework v6.0.0
- realrashid/sweet-alert v2.0 requires laravel/framework ~5.4.0|~5.8.0|~5.9.0 -> satisfiable by laravel/framework[5.4.x-dev, 5.8.x-dev].
- Can only install one of: laravel/framework[5.8.x-dev, v6.0.0].
- Can only install one of: laravel/framework[5.4.x-dev, v6.0.0].
- Installation request for laravel/framework (locked at v6.0.0, required as ^6.0) -> satisfiable by laravel/framework[v6.0.0].
The realrashid/sweet-alert package has not been updated for use in Laravel 6.0. You will have to wait until it is updated, update the package yourself, or use a different package for SweetAlert2.
Update: The package has been updated for use with Laravel 6.0.
composer require realrashid/sweet-alert

Problem of Laravel Framework version for using the package mailjet/laravel-mailjet

I've a problem for using mailjet/laravel-mailjet, it seems a problem of versions.
I was using Laravel Framework 5.6.33 and i got
Can only install one of: laravel/framework[v5.6.39, 5.4.x-dev].
i've change my composer.json and now, i'm using Laravel Framework 5.6.39 but i've still the same problem
$ php artisan --version
Laravel Framework 5.6.39
There is the answer when i try to install mailjet/laravel-mailjet
$ composer require mailjet/laravel-mailjet
Using version ^1.1 for mailjet/laravel-mailjet
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: laravel/framework[v5.6.39, 5.4.x-dev].
- Can only install one of: laravel/framework[5.4.x-dev, v5.6.39].
- Can only install one of: laravel/framework[5.4.x-dev, v5.6.39].
- mailjet/laravel-mailjet 1.1.0 requires laravel/framework 5.4.* -> satisfiable by laravel/framework[5.4.x-dev].
- Installation request for mailjet/laravel-mailjet ^1.1 -> satisfiable by mailjet/laravel-mailjet[1.1.0].
- Installation request for laravel/framework 5.6.39 -> satisfiable by laravel/framework[v5.6.39].
the 4th line explains it all.
mailjet/laravel-mailjet 1.1.0 requires laravel/framework 5.4.*
so, you can't use v5.6.39, only 5.4.*

Laravel vendor publish scout doesn't publish scout.php in the config folder

After running,composer require laravel/scout
Added this in the config/app.php configuration file:
Laravel\Scout\ScoutServiceProvider::class,
Finally
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
The problem is it doesn't publish the scout.php file in the config folder...
Ok, to see you are doing something wrong, just use php artisan vendor:publish, without any parameter.
it will publish all available provides. if it doesn't work there should be an issue with the package, consider re-install it.
I had the same problem but using Lumen and the output in my case it was something like this:
Problem 1
- Conclusion: don't install laravel/scout v3.0.7
- Conclusion: don't install laravel/scout v3.0.6
- Conclusion: don't install laravel/scout v3.0.5
- Conclusion: don't install laravel/scout v3.0.4
- Conclusion: don't install laravel/scout v3.0.3
- Conclusion: don't install laravel/scout v3.0.2
- Conclusion: don't install laravel/scout v3.0.1
- Conclusion: don't install laravel/scout v3.0.0
- Conclusion: don't install laravel/scout 3.0.x-dev
- Conclusion: remove illuminate/bus v5.3.23
- Installation request for laravel/scout ^3.0 -> satisfiable by laravel/scout[3.0.x-dev, v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7].
- Conclusion: don't install illuminate/bus v5.3.23
- laravel/scout 3.0.x-dev requires illuminate/bus ~5.4 -> satisfiable by illuminate/bus[5.4.x-dev, 5.5.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.9].
- Can only install one of: illuminate/bus[5.4.x-dev, v5.3.23].
- Can only install one of: illuminate/bus[5.5.x-dev, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.0, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.13, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.17, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.19, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.27, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.9, v5.3.23].
- Installation request for illuminate/bus (locked at v5.3.23) -> satisfiable by illuminate/bus[v5.3.23].
Scout is for be used in version 5.4, So in the file composer.json change the version in the following line:
"laravel/lumen-framework": "5.4.*"
after this just run:
composer dump-autoload
composer update
composer require laravel/scout
and for finish:
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
Well this is the case for Lumen, but if is not your case, Try to update the Laravel version on composer file, and then update before install scout.
I hope this helps.
You just need to manually copy and create the config file:
from:
/vendor/laravel/scout/config/scout.php
to:
/config/scout.php
This can happen if you have cached your config using artisan config:cache. To solve it clear the config cache (by running artisan config:cache again). Then retry the vendor publish command.

Magento 2 composer not working

I am trying install a lenguage package in Magento 2. I run composer require eusonlito/magento2-language-es_es, but composer show me a problem:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^0.0.5 for eusonlito/magento2-language-es_es
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for eusonlito/magento2-language-es_es ^0.0.5 -> satisfiable by eusonlito/magento2-language-es_es[0.0.5].
- Conclusion: remove magento/framework 100.1.2
- Conclusion: don't install magento/framework 100.1.2
- eusonlito/magento2-language-es_es 0.0.5 requires magento/framework 100.0.* -> satisfiable by magento/framework[100.0.10, 100.0.11, 100.0.12, 100.0.13, 100.0.2, 100.0.3, 100.0.4, 100.0.5, 100.0.6, 100.0.7, 100.0.8, 100.0.9].
- Can only install one of: magento/framework[100.1.2, 100.0.10].
- Can only install one of: magento/framework[100.1.2, 100.0.11].
- Can only install one of: magento/framework[100.1.2, 100.0.12].
- Can only install one of: magento/framework[100.1.2, 100.0.13].
- Can only install one of: magento/framework[100.1.2, 100.0.2].
- Can only install one of: magento/framework[100.1.2, 100.0.3].
- Can only install one of: magento/framework[100.1.2, 100.0.4].
- Can only install one of: magento/framework[100.1.2, 100.0.5].
- Can only install one of: magento/framework[100.1.2, 100.0.6].
- Can only install one of: magento/framework[100.1.2, 100.0.7].
- Can only install one of: magento/framework[100.1.2, 100.0.8].
- Can only install one of: magento/framework[100.1.2, 100.0.9].
- Installation request for magento/framework (locked at 100.1.2) -> satisfiable by magento/framework[100.1.2].
Installation failed, reverting ./composer.json to its original content.
How I can solve this problem?
Thanks!
Installation of eusonlito/magento2-language-es_es create version problems (with magento/framework in this case). Here, your magento/framework version is too high for magento2-language-es_es. Try to see which dependencies magento2-language-es_es needs and change the version tag.

Problems in installing Laravel Envoy with composer

When i try to install laravel envoy and run this command:
composer global require "laravel/envoy=~1.0"
I received this answer in terminal:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install laravel/envoy v1.1.0
- Conclusion: don't install laravel/envoy v1.0.27
- Conclusion: don't install laravel/envoy v1.0.26
- Conclusion: don't install laravel/envoy v1.0.25
- Conclusion: don't install laravel/envoy v1.0.24
- Conclusion: don't install laravel/envoy v1.0.23
- Conclusion: don't install laravel/envoy v1.0.22
- Conclusion: don't install laravel/envoy v1.0.21
- Conclusion: don't install laravel/envoy v1.0.20
- Conclusion: don't install laravel/envoy v1.0.19
- Conclusion: don't install laravel/envoy v1.0.18
- Conclusion: don't install laravel/envoy v1.0.17
- Conclusion: don't install laravel/envoy v1.0.16
- Conclusion: don't install laravel/envoy v1.0.15
- Conclusion: don't install laravel/envoy v1.0.14
- Conclusion: don't install laravel/envoy v1.0.13
- Conclusion: don't install laravel/envoy v1.0.12
- Conclusion: don't install laravel/envoy v1.0.11
- Conclusion: don't install laravel/envoy 1.0.5
- Conclusion: don't install laravel/envoy 1.0.3
- Conclusion: don't install laravel/envoy 1.0.2
- Conclusion: remove symfony/process v3.0.4
- Installation request for laravel/envoy ~1.0 -> satisfiable by laravel/envoy[1.0.0, 1.0.2, 1.0.3, 1.0.5, v1.0.11, v1.0.12, v1.0.13, v1.0.14, v1.0.15, v1.0.16, v1.0.17, v1.0.18, v1.0.19, v1.0.20, v1.0.21, v1.0.22, v1.0.23, v1.0.24, v1.0.25, v1.0.26, v1.0.27, v1.1.0].
- Conclusion: don't install symfony/process v3.0.4
- laravel/envoy 1.0.0 requires symfony/process 2.4.* -> satisfiable by symfony/process[v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9].
- Can only install one of: symfony/process[v2.4.0, v3.0.4].
- Can only install one of: symfony/process[v2.4.1, v3.0.4].
- Can only install one of: symfony/process[v2.4.10, v3.0.4].
- Can only install one of: symfony/process[v2.4.2, v3.0.4].
- Can only install one of: symfony/process[v2.4.3, v3.0.4].
- Can only install one of: symfony/process[v2.4.4, v3.0.4].
- Can only install one of: symfony/process[v2.4.5, v3.0.4].
- Can only install one of: symfony/process[v2.4.6, v3.0.4].
- Can only install one of: symfony/process[v2.4.7, v3.0.4].
- Can only install one of: symfony/process[v2.4.8, v3.0.4].
- Can only install one of: symfony/process[v2.4.9, v3.0.4].
- Installation request for symfony/process == 3.0.4.0 -> satisfiable by symfony/process[v3.0.4].
My composer.json file in ~/.composer:
{
"require": {
"laravel/installer": "^1.3"
}
}
I am using Laravel 5.2.
I've found the solution to this problem.
This problem exists because Laravel 5.2 need symfony/process 2.8.* | 3.0.* and Envoy need symfony/process 2.4.* and when you are using higher symfony/process version, It faces some trouble in order to realize the difference of versions.
Solution:
Open composer.json file in ~/.composer:
$ vi ~/.composer/composer.json
It should look like this:
{
"require": {
"laravel/installer": "^1.3"
}
}
Change it to:
{
"require": {
"laravel/envoy": "~1.0",
"laravel/installer": "^1.3"
}
}
Now use:
$ composer global require "laravel/envoy=~1.0"
Don't forget to make your composer alias available from your $PATH
composer global require laravel/envoy
You may need to (if not already) add your global composer directory to your $PATH
Add this line into your ~/.bash_profile or ~/.bashrc.
export PATH="$HOME/.composer/vendor/bin:$PATH"

Resources