Skip to content

Tag: php

Laravel UUID’s and their uniqueness?

I have two tables, one for lists and another that stores a history of lists that were created. These lists are very temporary and they can be deleted by numerous methods so I add a reason field on the history for that. Now both have a uuid field and I can generate an actual string to store with Laravel’…

OSX composer increase memory limit

I am having memory issues with composer; trying to increase the available amount above 128MO. I have been following the guidelines from composer.org but nothing seems to work. If I locate php.ini on my machine I get: I sudo /private/etc/php.ini.default and change MEMORY_LIMIT = 512MO but when I do php -r &#82…

double data on mysql

I use the php operator && to select multiple data so that there is no duplication on mysql. Does the code that I use below run fine? Is there a more simple use of PHP operators? Answer Upgrade to mysqli, I’ll recommend object-oriented syntax because it is nicer to work with. In accordance with t…