-
Notifications
You must be signed in to change notification settings - Fork 409
crashing after fresh install #43
Comments
Hello have you done an artisan publish command ? |
Hi, Yep, I had made the "php artisan vendor:publish". Thanks, |
It could be that you haven't done the php artisan vendor:publish before the registration of the serviceprovider (LaravelFCM\FCMServiceProvider::class ) in the app.php file. please try again php artisan vendor:publish with Please give me a feedback if it's working or not PS: Please check if in config folder you have a fcm.php file. Best regards |
Sorry, but didn't work (Same error):
I can also confirm that the fcm.php file is in the config folder(I added the SERVER_KEY and SENDER_ID in the .env file):
I did add the serviceprovider in the app.php file (Before calling the vendor:publish):
and also:
Finally, the ONLY thing that I thought that was weird is that my bootstrap\app.php file doesn't contain anything similar of what the LUMEN part was saying. I actually never opened this file before. But I still added the lines to this file. Then, I did notice that the aliases didn't work in my code, but I just added the full path to get it running (Still crashing, but not complaining that the FCM was not found).
And, in my file, I'm using:
and this is the entire method:
I believe that this is all the files that I changed. Any idea what is wrong? How can I force a republish, just to be sure? |
It's strange. It's look like a issue with the config file. Can you try to remove all files and the package in make a vendor:publish command. you can also remove the content added in your Thank you |
Just tried what you said. |
I have tried also with Laravel 5.4.19 and it works for me. I have release a new version 1.2.4. In this version the command vendor:publish is optional. Can you try to update the package thank you |
Hey, Thanks for the changes, apparently this fixed the initial issue.
I will investigate this error as well. If I found something I will let you know. |
Hey, Great news!!!! It worked!
|
Hi,
I had followed the step by step explanation, but I'm getting an error when trying to send a message.
Any idea what I'm doing wrong? Or is this a real bug?
PS: I already cleaned the cache in all the possible ways that I found in the internet and still no luck.
Thanks,
Joao
The text was updated successfully, but these errors were encountered: