Category 1
16 posts filed under Category 1.
Return precise error validation messages using invokable rules in Laravel.
https://twitter.com/anwar_nairi/status/1581601346234507264
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...
A cheat sheet of the ways you can push jobs to queue in Laravel.
https://twitter.com/cosmeescobedo/status/1576978802952978433
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...
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...
Your Mac was unable to communicate with your Apple Watch.
I Unpaired my iWatch from my iPhone and then went to"Use my Apple Watch to unlock apps and your Mac....
Laravel production optimisation, load testing and monitoring
When pushing your new app into production there are always stages you should follow to ensure there...