TDD on Laravel? Here’s a Tip to Make Jeffrey Way’s “Factory” Play Nice with UUIDs

Jeffrey Way’s Test Helpers Package.

Problem: the Factory class does not support UUID/GUID generation, and will mess with your tests by filling your foreign and primary keys with what it considers “strings”, stuff like “abcdef-1” or “ouibuh-3”.

public function getDataType($col)<br>
    return $col-&gt;getType()-&gt;getName();<br>

Here’s the modified version:

public function getDataType($col) {<br>
    $type = $col-&gt;getType()-&gt;getName();<br>
    if ($type === 'string' &amp;&amp; $col-&gt;getLength() === 36) {<br>
        return 'uuid';<br>
    return $type;<br>

Got Your Domain Sniped? Complaining To The Registrar Can Go A Long Way!

Domain Sniping Cat

Earlier this week, I ran into an extremely annoying and even potentially dangerous situation involving my domain name, Here’s an account of how I lost it, what I did as a response and the outcome of it all with some free advice on how to maximise your chances of getting a domain back.