Casmo - dev hub

Mathieu de Ruiter

A happy developer

Hello there, I'm Mathieu and I'm a developer by day and a designer by night. I'm passionate about applications, games and websites.
Currently working fulltime with Laravel, React, Filament and Unreal Engine (C++ & Blueprints). Feel free to connect!


Search (part) of an email address in mysql with fulltext.

Whenever you work with searching in MySQL you are quickly using fulltext in boolean mode. This is a powerful way to finetune a search but has it limitions with special characters, like the at-sign.


When searching (parts of) an email ...

Remove all (non breakable) spaces from a string in PHP

When working with emails you sometimes want to clear all html, spaces and other markup and just keep the plain text of a mail. Useful for indexing or searching in large amounts of emails.

Here is a snippet that removes all hard-to-get spaces...

Recover deleted Uploadcare files in Laravel

Whoops, it could happen everyone. But this time it happend to me. I tried to configure Uploadcare in Filament and after uploading a new image everything was deleted in Uploadcare! Luckely for me, restoring all deleted files wasn’t hard but not well ...