Skip to content

Tag: php

How to get All data from a model except one?

I want to retrieve all users data except one.for that i used the following query When i dd() the output I see all the users data except the one But when I send the query results in foreach() loop in view page I see Trying to get property of non-object Error in view page.What’s the Error here? Can anyone…

Image upload on linux server (PHP)

I am trying to upload image to server. The following code works when I use on local pc but when I try on server, image is not uploaded. Answer Do you have the same file permissions on server? Does folder /var/www/html/uploaded exist and is writable by web server user (usually www-data)? Try running following …

OneSignal push notification with PHP

I’m using onesignal first time. I have already spent too much time on R&D. But output is almost zero. So here I go with my requirements. I have a website. iOS app of the site and Android app too. Just like whatsapp or facebook. When user logged in any of the above, user should get webpush notificati…

Running two PHP versions on the same server

I have two projects on the local server, one project is running PHP5.6 and the other one is running PHP7.0. Now would it be possible to enable these two versions based on the projects? I already tried adding AddHandler application/x-httpd-php7 .php in one of the project htaccess but it’s not working. Cu…