Comments (5)
@dbaranoff Thanks for letting me know and for providing so much information, I think I can use this to update the documentation and to fix the issues!
I created the #9 PR to make it a little easier to follow along and will mention you there once I have something for you to test if you don't mind 😅
from laravel-firebase.
Hi @chimit, thank you for bringing this up! Could you please test if adding/replacing
"kreait/laravel-firebase": "dev-lumen-support as 1.2.1",
to/in your composer.json and then updating fixes the issue for you? If so, I will merge the change and create a new release.
from laravel-firebase.
Factory DI works, but Messaging not:
use Kreait\Firebase\Messaging;
function __construct(Messaging $messaging)
{
local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Argument 1 passed to Kreait\Laravel\Firebase\ServiceProvider::Kreait\Laravel\Firebase\{closure}() must be an instance of Illuminate\Contracts\Foundation\Application, instance of Laravel\Lumen\Application given, called
Apparently, need to remove type hinting everywhere from the ServiceProvider.php
.
from laravel-firebase.
Yes apparently 😉, I should have scrolled down the code more 😅.
Could you please update the dependency and try again?
from laravel-firebase.
Hey there!
First, thanks for this library - it is awesome!
Second, the pain...
I'm new to Laravel and I've encountered an issue with the Lumen install too.
I set up and installed a fresh version of the package as you said above => "kreait/laravel-firebase": "dev-lumen-support as 1.2.1"
,
Here's the error when I'm trying to run php artisan serve
In ServiceProvider.php line 16:
Call to undefined method Laravel\Lumen\Application::configPath()
I suppose it's related to the error above as well?
I'll provide some info below, is it enough?
Please assist - what am I doing wrong?
Side notes:
- Here are some parts of my
bootstrap/app.php
:
...
$app->withFacades(
true,
[
...
Kreait\Laravel\Firebase\Facades\FirebaseDatabase::class => 'FirebaseDatabase',
...
]);
...
$app->configure('firebase'); // was copied manually from vendor/kreait/laravel-firebase/config/firebase.php to config/app.php
...
$app->register(Kreait\Laravel\Firebase\ServiceProvider::class);
...
- Here are versions:
"laravel/lumen-framework": "^5.8",
"kreait/laravel-firebase": "dev-lumen-support as 1.2.1",
3, Environment:
Win10-x64 / OpenServer 5.2.2 / PHP 7.3-x64
-
Tried to run
composer dumpautoload
- no luck. -
If I don't run
php artisan serve
and reaching the local domain via OpenServer alias - it is working as expected - I tested on FirebaseDatabase - the data was successfully read and written from/to FirebaseDB
from laravel-firebase.
Related Issues (20)
- Sign in HOT 3
- Call to undefined method Google\Cloud\Firestore\DocumentSnapshot::delete() HOT 1
- how to remove image from firebase using download url? HOT 1
- how to set up pagination? Please help HOT 1
- Next release HOT 2
- No publishable resources for tag []. Publishing complete. HOT 5
- Callable functions
- SenderId mismatch HOT 7
- Laravel error HOT 2
- getting error HOT 1
- Incompatibility with Eloquent Resources? HOT 1
- Confirm email verification Support
- Its not supported php 8. Please fix this
- Push notifications are not getting displayed in IOS and Android randomly HOT 1
- Be able to override FirestoreClient::DEFAULT_DATABASE HOT 7
- Support PHP8.3 HOT 2
- Firestore insert or update problem when using laravel-octane HOT 3
- Auto discovery not working similar to v4.x HOT 4
- Cannot mock final class for phpunit tests as it's return type is other final class HOT 1
- Support symfony/cache version 7 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-firebase.