Alymosul / laravel-exponent-push-notifications

Exponent push notifications driver for laravel 5
MIT License
144 stars 77 forks source link

php artisan vendor:publish not working laravel 7.5 #58

Closed AmineZeggaf99 closed 2 years ago

AmineZeggaf99 commented 4 years ago

the php artisan vendor:publish returns Unable to locate publishable resources

cokealmonacid commented 4 years ago

Any news on this?

hirbod commented 4 years ago

Did you call it that way:

php artisan vendor:publish --provider="NotificationChannels\ExpoPushNotifications\ExpoPushNotificationsServiceProvider" --tag="migrations"

?

cokealmonacid commented 4 years ago

@Hirbod Yes! when try to install via composer the provider isn't added to the providder list on config/app.php, so try to publish with vendor but dont work. I try to manually added but need to see some example of how the repo works before lost several hours trying to make it work

hirbod commented 4 years ago

I'm using it since a year. I remember I had the same issue and resolved those by copying stuff manually but not sure what I've done. But ever since then, everything is working fine.

Alymosul commented 4 years ago

I didn't encounter this but also i haven't used it on Laravel7+. I'll try to solve it.

JamesKindyHub commented 4 years ago

I had this problem, but composer was actually the problem....

When installing the package I had this output:

php composer.phar require alymosul/laravel-exponent-push-notifications Using version ^2.1 for alymosul/laravel-exponent-push-notifications ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Killed

If composer kills itself, then the migration won't be available, but composer.json thinks the package is installed properly. In my case a vm was out of memory, when I ran the install commands again after fixing this the vendor:publish command works fine.

Original post below left for anyone else experiencing this.. _This is also an issue on Laravel 6.x

php artisan vendor:publish --provider="NotificationChannels\ExpoPushNotifications\ExpoPushNotificationsServiceProvider" --tag="migrations" Unable to locate publishable resources. Publishing complete.

php artisan migrate Nothing to migrate._

IvanVasquez commented 3 years ago

I had the same problem (Laravel 6.x) but looking at the code I found that every config('exponent-push-notifications.*') wasn't working, I run php artisan config:cache and everything worked.

theambidextrous commented 3 years ago

I had the same problem (Laravel 6.x) but looking at the code I found that every config('exponent-push-notifications.*') wasn't working, I run php artisan config:cache and everything worked.

saved my day. Thank you. Laravel 7.X