Skip to content

Tag: php

I have an error while using firebase php which is cURL error 35

I am trying to use php with firebase after installing the package “composer require kreait/firebase-php ^4.0” and adjusting my firebase it shows me that error: Fatal error: Uncaught GuzzleHttpExceptionConnectException: cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ff64t.fi…

How to show certain rows only in serverside processing?

I would like to show only certain rows to logged in users where “column_name” = “some_value” in serverside-processing. Currently i use following code below. How do i achieve this? Answer We can do this by using instead of simple use complex and then add “column_name = ‘some…

Return a empty string if return is empty

So I have the following method that is sending back a response to my API, but I have one small problem that I’m trying to overcome. public function transform($employee) { return [ …

user_id is not taking the value provided

The migrations file look like below but the posts table in the database is having 0 as value. The database is populated through the web.php code below. I need the user_id to have values 1 and 2 in the database posts. Answer It’s very Simple just Go to your Post model when you use create method to insert…