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

Unable to publish the package #210

Closed
bloominthedark opened this issue Mar 10, 2021 · 2 comments
Closed

Unable to publish the package #210

bloominthedark opened this issue Mar 10, 2021 · 2 comments
Labels

Comments

@bloominthedark
Copy link

Hi Tom Wiskowki and Astrotomic team.

I had a problem with the installation package.

I'm following the guide in Gitbook, after run cli : 'composer require astrotomic/laravel-translatable'. I can't publish the package with cli : 'php artisan vendor:publish --tag=translatable'.
The terminal return 'Unable to locate publishable resources.'
Then I check artisan vendor:publish, I don't see this package provider in provider class and tag list, screenshot is attached below.
Please can tell me if I miss something in the installation step. After investigating, I think this package can help me solve localization in my project, so I really want to use this package as a solution.
Maybe the tag or provider name has been changed in an updated and that has not been updated in the document.
I'm using Laravel 8 and PHP 7.4, Composer 1.0 with the latest version of the package.

Screen Shot 2021-03-10 at 14 29 18.

@bloominthedark
Copy link
Author

Sorry for this inconvenience.

I'm not sure why I got this error. But actually, the problem not came from your package. I try everything but it still not work.
Then I try to install another package, and... still facing the same problem. So I realized that the problem was from the local environment.

After all, I run "artisan config:cache" and IT'S WORKED.

It's so strange before run the config:cache, the provider, and tag did not appear in the publishable list.

I will close this request and please mark it with a Question label, maybe it can help someone facing the same problem as me.

Once again, thanks if you took a look at this request.

@Gummibeer
Copy link
Member

Hey, never cache in local environment.
You should run artisan config:clear.

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

No branches or pull requests

2 participants