mauricecalhoun / inventory

Inventory Management for Laravel 4 / 5
424 stars 204 forks source link

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

Open hengsoheak opened 6 years ago

hengsoheak commented 6 years ago

`{ "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 commented 6 years ago

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 commented 6 years ago

What is PR?

sudeep22169 commented 6 years ago

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