madebybob / voyager-config

The missing Voyager export/import tool
13 stars 5 forks source link

Unable to find the voyager:import command #2

Open ittisafur opened 4 years ago

ittisafur commented 4 years ago

Installed the package via composer require madebybob/voyager-config

published the provider php artisan vendor:publish --provider="MadeByBob\VoyagerConfig\VoyagerConfigServiceProvider"

I was able to successfully export my data into the config folder. But I can't find the voyager:import command Running php artisan list gives me this voyager:admin Make sure there is a user with the admin role that has all of the necessary permissions. voyager:clear Clears Voyager's data from the config folder voyager:controllers Publish all the controllers from Voyager. voyager:export Export Voyager's data into the config folder voyager:install Install the Voyager Admin package

ash-rain commented 3 years ago

I have the same issue. It used to be working just fine.

adityastic commented 3 years ago

@ash-rain @ittisafur

I've dropped a pr to fix this. In the meantime, you can add a repository in your composer.json like this:

"repositories": [
        {
            "type": "git",
            "url": "https://github.com/adityastic/voyager-config-exporter.git"
        }
    ]

and add a requirement like below:

"require": {
        "php": "^7.3",
        "adityastic/voyager-config": "dev-master"
    },

run composer update to update dependencies.

also make sure that you publish the provider using php artisan vendor:publish --provider="MadeByBob\VoyagerConfig\VoyagerConfigServiceProvider" after update

and you should be good to go :)

MACscr commented 3 years ago

pardon my ignorance, but if my i already have a repository for something else, how do i add another one?

EDIT: nvm, realized i had to add an alias for it to work:

    "repositories": {
        "hooks": {
            "type": "composer",
            "url": "https://larapack.io"
        },
        "adityastic": {
            "type": "git",
            "url": "https://github.com/adityastic/voyager-config-exporter.git"
        }
    }
ash-rain commented 3 years ago

@adityastic Thanks for the PR! Hope it gets merged soon. @MACscr Thanks for the snippet, this worked for me (just testing on clean docker build)

"repositories": {
        "adityastic": {
            "type": "git",
            "url": "https://github.com/adityastic/voyager-config-exporter.git"
        }
    }
"require": {
        "php": "^7.3",
        "adityastic/voyager-config": "dev-master"
    },

run composer update to update dependencies.

also make sure that you publish the provider using php artisan vendor:publish --provider="MadeByBob\VoyagerConfig\VoyagerConfigServiceProvider" after update

and you should be good to go :)

You saved me guys! Cheers