We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am getting this error, my code:
$obj = new Question(); $obj->text = $data["text"]; $obj->survey_id = $data["survey_id"];
$obj->save();
I dont want to sync with firebase, I will use firebase only for some realtime capabilities, not everything and in my config I have:
'sync' => false
"#0 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/Client.php(19): Illuminate\Exception\Handler->handleError(4096, 'Argument 1 pass...', '/Users/jfhernan...', 19, Array) #1 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/LaravelFirebaseServiceProvider.php(48): J42\LaravelFirebase\Client->__construct(NULL) #2 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Container/Container.php(501): J42\LaravelFirebase\LaravelFirebaseServiceProvider->J42\LaravelFirebase{closure}(Object(Illuminate\Foundation\Application), Array) #3 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Container/Container.php(428): Illuminate\Container\Container->build(Object(Closure), Array) #4 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(462): Illuminate\Container\Container->make('firebase', Array) #5 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Container/Container.php(806): Illuminate\Foundation\Application->make('firebase') #6 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(146): Illuminate\Container\Container->offsetGet('firebase') #7 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(116): Illuminate\Support\Facades\Facade::resolveFacadeInstance('firebase') #8 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(200): Illuminate\Support\Facades\Facade::getFacadeRoot() #9 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/LaravelFirebaseServiceProvider.php(74): Illuminate\Support\Facades\Facade::__callStatic('getId', Array) #10 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/LaravelFirebaseServiceProvider.php(74): J42\LaravelFirebase\LaravelFirebaseFacade::getId(Object(Question)) #11 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/LaravelFirebaseServiceProvider.php(28): J42\LaravelFirebase\LaravelFirebaseServiceProvider->sync(Object(Question)) #12 [internal function]: J42\LaravelFirebase\LaravelFirebaseServiceProvider->J42\LaravelFirebase{closure}(Object(Question)) #13 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(199): call_user_func_array(Object(Closure), Array) #14 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1617): Illuminate\Events\Dispatcher->fire('eloquent.create...', Object(Question)) #15 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1551): Illuminate\Database\Eloquent\Model->fireModelEvent('created', false) #16 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1443): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder), Array) #17 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/app/controllers/QuestionController.php(48): Illuminate\Database\Eloquent\Model->save() #18 [internal function]: QuestionController->store() #19 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array) #20 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction('store', Array) #21 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call(Object(QuestionController), Object(Illuminate\Routing\Route), 'store') #22 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(962): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'QuestionControl...', 'store') #23 [internal function]: Illuminate\Routing\Router->Illuminate\Routing{closure}() #24 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Route.php(109): call_user_func_array(Object(Closure), Array) #25 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1028): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request)) #26 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(996): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #27 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #28 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request)) #29 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true) #30 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true) #31 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true) #32 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true) #33 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request)) #34 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/public/index.php(52): Illuminate\Foundation\Application->run() #35 {main}"
The text was updated successfully, but these errors were encountered:
I added firebase connection details not inside connections array SORRY
Sorry, something went wrong.
No branches or pull requests
I am getting this error, my code:
$obj = new Question();
$obj->text = $data["text"];
$obj->survey_id = $data["survey_id"];
I dont want to sync with firebase, I will use firebase only for some realtime capabilities, not everything and in my config I have:
'sync' => false
"#0 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/Client.php(19): Illuminate\Exception\Handler->handleError(4096, 'Argument 1 pass...', '/Users/jfhernan...', 19, Array)
#1 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/LaravelFirebaseServiceProvider.php(48): J42\LaravelFirebase\Client->__construct(NULL)
#2 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Container/Container.php(501): J42\LaravelFirebase\LaravelFirebaseServiceProvider->J42\LaravelFirebase{closure}(Object(Illuminate\Foundation\Application), Array)
#3 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Container/Container.php(428): Illuminate\Container\Container->build(Object(Closure), Array)
#4 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(462): Illuminate\Container\Container->make('firebase', Array)
#5 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Container/Container.php(806): Illuminate\Foundation\Application->make('firebase')
#6 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(146): Illuminate\Container\Container->offsetGet('firebase')
#7 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(116): Illuminate\Support\Facades\Facade::resolveFacadeInstance('firebase')
#8 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(200): Illuminate\Support\Facades\Facade::getFacadeRoot()
#9 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/LaravelFirebaseServiceProvider.php(74): Illuminate\Support\Facades\Facade::__callStatic('getId', Array)
#10 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/LaravelFirebaseServiceProvider.php(74): J42\LaravelFirebase\LaravelFirebaseFacade::getId(Object(Question))
#11 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/j42/laravel-firebase/src/j42/LaravelFirebase/LaravelFirebaseServiceProvider.php(28): J42\LaravelFirebase\LaravelFirebaseServiceProvider->sync(Object(Question))
#12 [internal function]: J42\LaravelFirebase\LaravelFirebaseServiceProvider->J42\LaravelFirebase{closure}(Object(Question))
#13 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(199): call_user_func_array(Object(Closure), Array)
#14 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1617): Illuminate\Events\Dispatcher->fire('eloquent.create...', Object(Question))
#15 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1551): Illuminate\Database\Eloquent\Model->fireModelEvent('created', false)
#16 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1443): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder), Array)
#17 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/app/controllers/QuestionController.php(48): Illuminate\Database\Eloquent\Model->save()
#18 [internal function]: QuestionController->store()
#19 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)
#20 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction('store', Array)
#21 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call(Object(QuestionController), Object(Illuminate\Routing\Route), 'store')
#22 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(962): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'QuestionControl...', 'store')
#23 [internal function]: Illuminate\Routing\Router->Illuminate\Routing{closure}()
#24 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Route.php(109): call_user_func_array(Object(Closure), Array)
#25 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1028): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#26 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(996): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#27 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#28 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#29 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#30 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#31 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#32 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#33 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#34 /Users/jfhernandeze/PhpstormProjects/com.encuestablet.api/public/index.php(52): Illuminate\Foundation\Application->run()
#35 {main}"
The text was updated successfully, but these errors were encountered: