Problems in installing Laravel Envoy with composer - laravel

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"

Related

Problem installing league/flysystem-aws-s3-v3 league/flysystem ^2.0 required but stuck at 1.1.3

I am attempting to install league/flysystem-aws-s3-v3 with laravel but receive the following:
Problem 1
- The requested package league/flysystem (locked at 1.1.3, required as ^2.0) is satisfiable by league/flysystem[1.1.3] but these conflict with your requirements or minimum-stability.
Problem 2
- Conclusion: remove laravel/framework v7.28.4
- Conclusion: don't install laravel/framework v7.28.4
- Conclusion: don't install league/flysystem 2.0.2
- Conclusion: don't install league/flysystem 2.0.1
- Conclusion: don't install league/flysystem 2.0.0
- Conclusion: don't install league/flysystem 2.0.0-RC1
- Conclusion: don't install league/flysystem 2.0.0-beta.3
- Conclusion: don't install league/flysystem 2.0.0-beta.2
- Conclusion: don't install league/flysystem 2.0.0-beta.1
- Conclusion: don't install league/flysystem 2.0.0-alpha.4
- Conclusion: don't install league/flysystem 2.0.0-alpha.3
- Conclusion: don't install league/flysystem 2.0.0-alpha.2
- Installation request for laravel/framework (locked at v7.28.4, required as ^7.24) -> satisfiable by laravel/framework[v7.28.4].
- Conclusion: don't install league/flysystem 2.0.0-alpha.1
- laravel/framework v7.28.4 requires league/flysystem ^1.0.34 -> satisfiable by league/flysystem[1.0.x-dev, 1.x-dev].
- Can only install one of: league/flysystem[2.x-dev, 1.x-dev].
- Can only install one of: league/flysystem[2.x-dev, 1.0.x-dev].
- Installation request for league/flysystem ^2.0 -> satisfiable by league/flysystem[2.0.0, 2.0.0-RC1, 2.0.0-alpha.1, 2.0.0-alpha.2, 2.0.0-alpha.3, 2.0.0-alpha.4, 2.0.0-beta.1, 2.0.0-beta.2, 2.0.0-beta.3, 2.0.1, 2.0.2, 2.x-dev].
When I try to update league/flysystem I receive the following:
Problem 1
- Conclusion: remove laravel/framework v7.28.4
- Conclusion: don't install laravel/framework v7.28.4
- Conclusion: don't install league/flysystem 2.0.2
- Conclusion: don't install league/flysystem 2.0.1
- Conclusion: don't install league/flysystem 2.0.0
- Conclusion: don't install league/flysystem 2.0.0-RC1
- Conclusion: don't install league/flysystem 2.0.0-beta.3
- Conclusion: don't install league/flysystem 2.0.0-beta.2
- Conclusion: don't install league/flysystem 2.0.0-beta.1
- Conclusion: don't install league/flysystem 2.0.0-alpha.4
- Conclusion: don't install league/flysystem 2.0.0-alpha.3
- Conclusion: don't install league/flysystem 2.0.0-alpha.2
- Installation request for laravel/framework (locked at v7.28.4, required as ^7.24) -> satisfiable by laravel/framework[v7.28.
- Conclusion: don't install league/flysystem 2.0.0-alpha.1
- laravel/framework v7.28.4 requires league/flysystem ^1.0.34 -> satisfiable by league/flysystem[1.0.x-dev, 1.x-dev].
- Can only install one of: league/flysystem[2.x-dev, 1.x-dev].
- Can only install one of: league/flysystem[2.x-dev, 1.0.x-dev].
- Installation request for league/flysystem ^2.0 -> satisfiable by league/flysystem[2.0.0, 2.0.0-RC1, 2.0.0-alpha.1, 2.0.0-alp
I am also unable to remove league/flysystem or update laravel
You're using Laravel 7 (although the same is true for Laravel 8), if you take a look at the laravel/framework composer.json file, you will see that it is requiring version 1; "league/flysystem": "^1.1"
Per composer constraints, this will allow any version from 1.1 to less than 2 (>=1.1 <2).
Now it is technically possible to install 2 different versions of a package, but I'd highly advise against it as you have to monkey with the autoloader to change the namespace for one version of the package. This answer covers the details on how to do it if you absolutely must.
If you are using laravel/framework version >= 8. Try running this command in your console. It worked for me.
composer require league/flysystem-aws-s3-v3

How to update phpunit 6 and code-coverage 5

I am using phpunit 6.5.14 togehter with php-code-coverage 5.3.2
I would like to update phpunit and php-code-coverage. However, when i try to update one of them, it fails because they require each other.
For example. calling
composer require --dev phpunit/phpunit ^7
fails with:
1/1: http://repo.packagist.org/p/provider-latest$f1c1ff74699130b4d82cd11e43a57fffc27fdcc5f268000782f585b13d1c5d4c.json
Finished: success: 1, skipped: 0, failure: 0, total: 1
./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
- Conclusion: don't install phpunit/phpunit 7.5.17
- Conclusion: don't install phpunit/phpunit 7.5.16
- Conclusion: don't install phpunit/phpunit 7.5.15
- Conclusion: don't install phpunit/phpunit 7.5.14
- Conclusion: don't install phpunit/phpunit 7.5.13
- Conclusion: don't install phpunit/phpunit 7.5.12
- Conclusion: don't install phpunit/phpunit 7.5.11
- Conclusion: don't install phpunit/phpunit 7.5.10
- Conclusion: don't install phpunit/phpunit 7.5.9
- Conclusion: don't install phpunit/phpunit 7.5.8
- Conclusion: don't install phpunit/phpunit 7.5.7
- Conclusion: don't install phpunit/phpunit 7.5.6
- Conclusion: don't install phpunit/phpunit 7.5.5
- Conclusion: don't install phpunit/phpunit 7.5.4
- Conclusion: don't install phpunit/phpunit 7.5.3
- Conclusion: don't install phpunit/phpunit 7.5.2
- Conclusion: don't install phpunit/phpunit 7.5.1
- Conclusion: don't install phpunit/phpunit 7.5.0
- Conclusion: don't install phpunit/phpunit 7.4.5
- Conclusion: don't install phpunit/phpunit 7.4.4
- Conclusion: don't install phpunit/phpunit 7.4.3
- Conclusion: don't install phpunit/phpunit 7.4.2
- Conclusion: don't install phpunit/phpunit 7.4.1
- Conclusion: don't install phpunit/phpunit 7.4.0
- Conclusion: don't install phpunit/phpunit 7.3.5
- Conclusion: don't install phpunit/phpunit 7.3.4
- Conclusion: don't install phpunit/phpunit 7.3.3
- Conclusion: don't install phpunit/phpunit 7.3.2
- Conclusion: don't install phpunit/phpunit 7.3.1
- Conclusion: don't install phpunit/phpunit 7.3.0
- Conclusion: don't install phpunit/phpunit 7.2.7
- Conclusion: don't install phpunit/phpunit 7.2.6
- Conclusion: don't install phpunit/phpunit 7.2.5
- Conclusion: don't install phpunit/phpunit 7.2.4
- Conclusion: don't install phpunit/phpunit 7.2.3
- Conclusion: don't install phpunit/phpunit 7.2.2
- Conclusion: don't install phpunit/phpunit 7.2.1
- Conclusion: don't install phpunit/phpunit 7.2.0
- Conclusion: don't install phpunit/phpunit 7.1.5
- Conclusion: don't install phpunit/phpunit 7.1.4
- Conclusion: don't install phpunit/phpunit 7.1.3
- Conclusion: don't install phpunit/phpunit 7.1.2
- Conclusion: don't install phpunit/phpunit 7.1.1
- Conclusion: don't install phpunit/phpunit 7.1.0
- Conclusion: don't install phpunit/phpunit 7.0.3
- Conclusion: don't install phpunit/phpunit 7.0.2
- Conclusion: don't install phpunit/phpunit 7.0.1
- Conclusion: remove phpunit/php-code-coverage 5.3.2
- Installation request for phpunit/phpunit-mock-objects (locked at 5.0.10) -> satisfiable by phpunit/phpunit-mock-objects[5.0.10].
- Installation request for phpunit/phpunit ^7 -> satisfiable by phpunit/phpunit[7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.2.0, 7.2.1, 7.2.2, 7.2.3, 7.2.4, 7.2.5, 7.2.6, 7.2.7, 7.3.0, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.3.5, 7.4.0, 7.4.1, 7.4.2, 7.4.3, 7.4.4, 7.4.5, 7.5.0, 7.5.1, 7.5.10, 7.5.11, 7.5.12, 7.5.13, 7.5.14, 7.5.15, 7.5.16, 7.5.17, 7.5.2, 7.5.3, 7.5.4, 7.5.5, 7.5.6, 7.5.7, 7.5.8, 7.5.9].
- Conclusion: don't install phpunit/php-code-coverage 5.3.2
- phpunit/phpunit 7.0.0 requires phpunit/php-code-coverage ^6.0 -> satisfiable by phpunit/php-code-coverage[6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4].
- Can only install one of: phpunit/php-code-coverage[6.0.0, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.1, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.2, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.3, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.4, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.5, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.6, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.7, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.8, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.0, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.1, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.2, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.3, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.4, 5.3.2].
- Installation request for phpunit/php-code-coverage (locked at 5.3.2) -> satisfiable by phpunit/php-code-coverage[5.3.2].
Trying to update code-coverage by
composer require phpunit/php-code-coverage ^6
fails with:
1/3: http://repo.packagist.org/p/provider-2019-10$1fbc8abf3f09ae347d28fffd902e6857758ba1084d91f9a81432e2a4039456fa.json
2/3: http://repo.packagist.org/p/provider-latest$b45915c1d4dfb4884956884c1468dfdd815ecef36ccfcbfe487b1bde9b209131.json
3/3: http://repo.packagist.org/p/provider-2019-07$645a5eaea36f8c8ff4b02534eb6864a423517398ecd77c4709effcb55d4a0c07.json
Finished: success: 3, skipped: 0, failure: 0, total: 3
./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
- phpunit/phpunit 6.5.14 requires phpunit/php-code-coverage ^5.3 -> satisfiable by phpunit/php-code-coverage[5.3.0, 5.3.1, 5.3.2, 5.3.x-dev] but these conflict with your requirements or minimum-stability.
- phpunit/phpunit 6.5.14 requires phpunit/php-code-coverage ^5.3 -> satisfiable by phpunit/php-code-coverage[5.3.0, 5.3.1, 5.3.2, 5.3.x-dev] but these conflict with your requirements or minimum-stability.
- phpunit/phpunit 6.5.14 requires phpunit/php-code-coverage ^5.3 -> satisfiable by phpunit/php-code-coverage[5.3.0, 5.3.1, 5.3.2, 5.3.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for phpunit/phpunit (locked at 6.5.14, required as ~6.0) -> satisfiable by phpunit/phpunit[6.5.14].
Installation failed, reverting ./composer.json to its original content.
I also tried to remove the code-coverage, so that I can update php-unit and reinstall it again. But removing it with
composer remove phpunit/php-code-coverage
does not work and just gives this notification:
phpunit/php-code-coverage is not required in your composer.json and has not been removed
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> #php artisan package:discover
Discovered Package: arrilot/laravel-widgets
Discovered Package: barryvdh/laravel-debugbar
Discovered Package: fideloper/proxy
Discovered Package: intervention/image
Discovered Package: iwasherefirst2/laravel-multimail
Discovered Package: larapack/voyager-hooks
Discovered Package: laravel/tinker
Discovered Package: mcamara/laravel-localization
Discovered Package: nunomaduro/larastan
Discovered Package: spatie/laravel-sitemap
Discovered Package: tcg/voyager
Discovered Package: xethron/migrations-generator
Package manifest generated successfully.
How may update both packages?
I recommend deleting composer.lock and or vendor, as Composer is not perfect in this. Often there is no conflict at all.
Then change remove both packages from composer.json.
Then let composer re-decide the highest version possible:
composer require phpunit/phpunit
You can ommit the phpunit/php-code-coverage, as it's already in phpunit/phpunit required packages.
I solved it by using --update-with-dependencies:
$ composer require --dev --update-with-dependencies phpunit/phpunit ^7.0.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 12 updates, 1 removal
- Removing phpunit/phpunit-mock-objects (5.0.10)
- Updating sebastian/resource-operations (1.0.0 => 2.0.1): Downloading (100%)
- Updating sebastian/environment (3.1.0 => 4.2.3): Downloading (100%)
- Updating sebastian/diff (2.0.1 => 3.0.2): Downloading (100%)
- Updating sebastian/comparator (2.1.3 => 3.0.2): Downloading (100%)
- Updating phpunit/php-timer (1.0.9 => 2.1.2): Downloading (100%)
- Updating phpunit/php-file-iterator (1.4.5 => 2.0.2): Downloading (100%)
- Updating phpunit/php-token-stream (2.0.2 => 3.1.1): Downloading (100%)
- Updating phpunit/php-code-coverage (5.3.2 => 6.1.4): Downloading (100%)
- Updating phar-io/version (1.0.1 => 2.0.1): Downloading (100%)
- Updating phar-io/manifest (1.0.1 => 1.0.3): Downloading (100%)
- Updating phpunit/phpunit (6.5.14 => 7.5.20): Downloading (100%)
(I found that option through https://github.com/composer/composer/issues/3063)

Installation lighthouse in laravel 5.7

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

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.

Composer update error with Laravel 5 - 'PHPExcel_Shared_Font' not found

I needed to customize a package I found on packagist, so I cloned the repo on github and updated my composer.json file to get the dependency from there instead.
Now when I run composer update I get the following:
[4.5MB/0.34s] Loading composer repositories with package information
[4.8MB/1.57s] Updating dependencies (including require-dev)
[248.7MB/16.88s] - Removing serverfireteam/blog (master)
[113.1MB/17.54s] Writing lock file
[113.1MB/17.55s] Generating autoload files
Fatal error: Class 'PHPExcel_Shared_Font' not found in C:\Users\Tim\Code\Laravel\config\excel.php on line 174
PHP Fatal error: Class 'PHPExcel_Shared_Font' not found in C:\Users\Tim\Code\Laravel\config\excel.php on line 174
[113.4MB/18.22s] Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Class 'PHPExcel_Shared_Font' not found in C:\Users\Tim\Code\Laravel\config\excel.php on line 174
I reveresed the change, and ran `composer update' again and get the following message:
[4.4MB/0.33s] Loading composer repositories with package information
[4.7MB/1.48s] Updating dependencies (including require-dev)
[258.9MB/15.11s] Your requirements could not be resolved to an installable set of packages.
[258.9MB/15.11s]
Problem 1
- Conclusion: remove laravel/framework v5.0.33
- Conclusion: don't install laravel/framework v5.0.33
- Conclusion: don't install laravel/framework v5.0.32
- Conclusion: don't install laravel/framework v5.0.31
- Conclusion: don't install laravel/framework 5.0.30
- Conclusion: don't install laravel/framework v5.0.29
- Conclusion: don't install laravel/framework v5.0.28
- Conclusion: don't install laravel/framework v5.0.27
- Conclusion: don't install laravel/framework v5.0.26
- Conclusion: don't install laravel/framework v5.0.25
- Conclusion: don't install laravel/framework v5.0.24
- Conclusion: don't install laravel/framework v5.0.23
- Conclusion: don't install laravel/framework v5.0.22
- Conclusion: don't install laravel/framework v5.0.21
- Conclusion: don't install laravel/framework v5.0.20
- Conclusion: don't install laravel/framework v5.0.19
- Conclusion: don't install laravel/framework v5.0.18
- Conclusion: don't install laravel/framework v5.0.17
- Conclusion: don't install laravel/framework v5.0.16
- Conclusion: don't install laravel/framework v5.0.15
- Conclusion: don't install laravel/framework v5.0.14
- Conclusion: don't install laravel/framework v5.0.13
- Conclusion: don't install laravel/framework v5.0.12
- Conclusion: don't install laravel/framework v5.0.11
- Conclusion: don't install laravel/framework v5.0.10
- Conclusion: don't install laravel/framework v5.0.9
- Conclusion: don't install laravel/framework v5.0.8
- Conclusion: don't install laravel/framework v5.0.7
- Conclusion: don't install laravel/framework v5.0.6
- Conclusion: don't install laravel/framework v5.0.5
- Conclusion: don't install laravel/framework v5.0.4
- Conclusion: don't install laravel/framework v5.0.3
- Conclusion: don't install laravel/framework v5.0.2
- Conclusion: don't install laravel/framework v5.0.1
- serverfireteam/blog master requires illuminate/support ~5.1 -> satisfiable by illuminate/support[v5.1.1, v5.1.2, v5.1.6, v5.1.8].
- serverfireteam/blog dev-master requires illuminate/support ~5.1 -> satisfiable by illuminate/support[v5.1.1, v5.1.2, v5.1.6, v5.1.8].
- don't install illuminate/support v5.1.1|don't install laravel/framework v5.0.0
- don't install illuminate/support v5.1.2|don't install laravel/framework v5.0.0
- don't install illuminate/support v5.1.6|don't install laravel/framework v5.0.0
- don't install illuminate/support v5.1.8|don't install laravel/framework v5.0.0
- Installation request for laravel/framework 5.0.* -> satisfiable by laravel/framework[5.0.30, v5.0.0, v5.0.1, v5.0.10, v5.0.11, v5.0.12, v5.0.13, v5.0.14, v5.0.15, v5.0.16, v5.0.17, v5.0.18, v5.0.19, v5.0.2, v5.0.20, v5.0.21, v5.0.22, v5.0.23, v5.0.24, v5.0.25, v5.0.26, v5.0.27, v5.0.28, v5.0.29, v5.0.3, v5.0.31, v5.0.32, v5.0.33, v5.0.4, v5.0.5, v5.0.6, v5.0.7, v5.0.8, v5.0.9].
- Installation request for serverfireteam/blog dev-master -> satisfiable by serverfireteam/blog[master].
[113.9MB/15.48s] Memory usage: 113.9MB (peak: 259.06MB), time: 15.48s
Does anyone know where I've gone wrong?
delete config/excel.php and re-publish it.
php artisan vendor:publish --provider=Maatwebsite\Excel\ExcelServiceProvider
As per your own comment #TimothyBuktu, serverfireteam/blog requires laravel 5.1.
You'll want to lock the version of serverfireteam/blog to dev-master#c0039d3ade67503d674093f3a56d7b1540ae958d in your composer.json, which is the last commit before the requirement of laravel was bumped to 5.1
Alternatively if you still want to receive updates for the package, you'll need to update your application to laravel 5.1. http://laravel.com/docs/5.1/upgrade
mm Xl's answer is excellent!
But after version 3.1 (included), the command is changed to the following one:
php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider" --tag=config
To see this part on docs: https://github.com/Maatwebsite/laravel-excel-docs/blob/develop/3.1/getting-started/installation.md

Resources