Posts
Guides, fixes and notes on Laravel, PHP, Vue, servers and crypto.
Making a database index invisible to test
Reference Deleting an unused index is still a risky operation: If you are wrong (and it is still ne...
Using closures into DB::transaction() to roll back
Reference Laravel tip - you can provide a closure into DB::transaction() and if any errors happen,...
Laravel how to handle similar custom Exception classes
Reference Laravel tip: if you want to create a few custom Exception classes that are similar, no ne...
Laravel - execute a relation model factory only when the relational id is not present
Reference In a factory you can execute a relation model factory only when the relational id...
Debugging long running queries using callback
Twitter Post How to sort these logs by their duration of execution if you'd like...
Plex & Raspberry Pi Can't Find Media - FAT/NTFS Folder
Original Post (My HDD was called TOSHIBA so I guess just substitute whatever yours is calle...
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0
Using Laravel Sail. I was trying the sail build command. And was met by this error. In WSL2 set up...
npm ERR! request to http://registry.npmjs.org/npm failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
Using WSL when running npm install npm@latest -g I kept receiving an error: npm ERR! request t...
Laravel Sail, WSL & Docker /usr/bin/env: 'bash\r': No such file or directory
Received an error in docker. /usr/bin/env: 'bash\r': No such file or directory It is happening due...
Multiple Laravel Docker Containers with Custom URL's in Windows Environment
Developing with Docker on Windows usually means urls like localhost:8080 or localhost:8081. What if...
Extracting speaker notes from a PowerPoint pptx file with PHP & Python
This tutorial was done on Mac and will need to be changed for your operating system. First ma...
Save a List of Files & Folder Contents Into a Text File with file paths
On Mac I needed to get the full paths of every file inside a folder with multiple folders inside thi...