Laravel TinkerServiceProvider' not found

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
tembem
Posts: 1
Joined: 18 Oct 2017, 08:56

Laravel TinkerServiceProvider' not found

Post by tembem » 18 Oct 2017, 09:13

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
}
}

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Laravel TinkerServiceProvider' not found

Post by aimeos » 18 Oct 2017, 14:04

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply