`{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"laravel/framework": "5.5.",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.5",
"stevebauman/inventory" : "1.6."
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~6.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}
`
I follow your step
Add inventory to your composer.json file:
"stevebauman/inventory" : "1.6.*"
Now perform a composer update on your project's source.
Then insert the service provider in your config/app.php config file:
'Stevebauman\Inventory\InventoryServiceProvider'
Either publish the assets to customize the database tables using:
php artisan vendor:publish
And then run the migrations:
php artisan migrate
Or use the inventory install command:
php artisan inventory:install
After that I got error
Method Stevebauman\Inventory\Commands\InstallCommand::handle() does not exist
`{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"laravel/framework": "5.5.",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.5",
"stevebauman/inventory" : "1.6."
}
`
I follow your step
Add inventory to your composer.json file:
"stevebauman/inventory" : "1.6.*"
Now perform a composer update on your project's source.
Then insert the service provider in your config/app.php config file:
'Stevebauman\Inventory\InventoryServiceProvider'
Either publish the assets to customize the database tables using:
php artisan vendor:publish
And then run the migrations:
php artisan migrate
Or use the inventory install command:
php artisan inventory:install
After that I got error
Method Stevebauman\Inventory\Commands\InstallCommand::handle() does not exist