Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stevebauman\Inventory\Commands\InstallCommand::handle() does not exist #73

Open
hengsoheak opened this issue Feb 6, 2018 · 3 comments

Comments

@hengsoheak
Copy link

`{
"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

@stevebauman
Copy link
Collaborator

Hi @hengsoheak,

This is because inventory doesn't support later versions of Laravel.

I'd love to update this package, unfortunately I'm just so strapped for time with other packages / projects along with working full time.

If you'd like to submit a PR to resolve this issue I will definitely merge it in.

Thanks!

@hengsoheak
Copy link
Author

What is PR?

@sudeep22169
Copy link

@hengsoheak you can replace the fire method with handle method. and run the command..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants