Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Unable to find the voyager:import command #2

Open
ittisafur opened this issue Jul 29, 2020 · 4 comments
Open

Unable to find the voyager:import command #2

ittisafur opened this issue Jul 29, 2020 · 4 comments

Comments

@ittisafur
Copy link

ittisafur commented Jul 29, 2020

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
Copy link

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

@adityastic
Copy link

adityastic commented Nov 4, 2020

@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
Copy link

MACscr commented Nov 17, 2020

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
Copy link

ash-rain commented Nov 22, 2020

@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

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

No branches or pull requests

4 participants