Giter Site home page Giter Site logo

Comments (7)

marcreichel avatar marcreichel commented on August 26, 2024

Well, you have a typo in your command. It has to be IGDBLaravel, not IGDB-Laravel:

php artisan vendor:publish --provider="MarcReichel\IGDBLaravel\IGDBLaravelServiceProvider"

from igdb-laravel.

paishin avatar paishin commented on August 26, 2024

@marcreichel, thank you so much for the quick response,

unfortunately the typo was made while writing the question not how I was actually running the command, so I am still facing this issue.
image

Even more strange is that the package does not appear while running php artisan vedor:publish either
image

but it is there when running php artisan package:discover
image

manually creating igdb.php file in config folder has no effect nor does adding the credentials in .env
I have edited the files in vendor folder with my credentials just to test it out and that makes the package work flawlessly.

Please let me know if I could provide you with any more details

from igdb-laravel.

marcreichel avatar marcreichel commented on August 26, 2024

No worries, this sounds like you have cached your configuration with php artisan config:cache. Please try clearing your config cache with php artisan config:clear and then try again publishing the config. Then the credentials in your .env file should work as well because the .env is not used while the config is cached.

Feel free to get back to me if this does not do the trick.

from igdb-laravel.

paishin avatar paishin commented on August 26, 2024

I had already tried that and it does not solve the issue. I have re-checked just in case, but the problem persists.
image
image

from igdb-laravel.

paishin avatar paishin commented on August 26, 2024

Update, although I can still not publish the resource automatically, manually creating the igdb.php file in config folder works after I have cleared the cache.

If no one else mentioned this issue then it might be something with my project specifically, so mark this as complete.

@marcreichel thank you so much for your support

from igdb-laravel.

marcreichel avatar marcreichel commented on August 26, 2024

Okay, happy to help (at least half way through 😅).

I will look into this issue with your provided versions though just to be sure if it's a general problem or not 👍🏼

So I leave it open for now 👍🏼

from igdb-laravel.

marcreichel avatar marcreichel commented on August 26, 2024

@paishin So, just to give you an update: I've created a fresh test project with Laravel v6.20.27 and installed this package with version 2.1.1 and I was able to publish the config file with php artisan vendor:publish --provider="MarcReichel\IGDBLaravel\IGDBLaravelServiceProvider". So it seems to not be a problem with this package you've faced but with your project somehow.
Are you able to publish config files (or views e.g.) from other packages?

from igdb-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.