Page 1 of 1

Laravel TinkerServiceProvider' not found

Posted: 18 Oct 2017, 09:13
by tembem
I got problem when run composer update.
this is my error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Laravel\Tinker\TinkerServiceProvider' not found


Script php artisan optimize handling the post-update-cmd event returned with error code 255


and here my composer.json files:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.4.*",
"laravel/tinker": "^1.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},

"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"aimeos/aimeos-laravel": "~2017.10"
},

"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize",
"php artisan vendor:publish --tag=public --force",
"php artisan vendor:publish",
"php artisan migrate"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}

Re: Laravel TinkerServiceProvider' not found

Posted: 18 Oct 2017, 14:04
by aimeos
Your composer.json is invalid because it contains two "require" sections. Merge the second into the first one and run composer update. Then it will work.