Changing CLI PHP Versions on Laravel Homestead
A quick and easy way to change the working CLI PHP version in Laravel Homestead.
Eager Loading Polymorphic Relations
Derek MacDonald wrote a nice post about eager loading polymorphic relationships. This has been a difficult item to solve so it's nice to see a documented approach that works for many scenarios. Thanks Derek!
Building a Laravel / MQTT App on Laravel Forge
Using a simple node script you can subscribe to an MQTT broker and forward messages to a Laravel application. Take a look at this article to see how we connected inexpensive temperature sensors to a web app for logging and reporting issues.
Handling Complex Data Flows
In this post, written for the Zaengle blog, I explore some strategies for navigating multi-step flows. Separating the data from the logic helps make the process more manageable.
"At its core, programming is nothing more than stacking little blocks of logic on each other, building up a structure comprised of detailed organization, intentional design, and functional beauty. Unless those goals are held front and center it is only a matter of time before the system devolves into a convoluted mess of overlapping, overstepping, messy code."
Interrogations & Conversations
Reframing close-ended questions with open-ended invites conversation and removes the sense of being interrogated.
It's Not You, It's Me.
"Beneffectance" is the name of a cognitive bias that suggests a person will readily claim responsibility for positive outcomes, yet reluctantly admit having a part in negative ones.
Checking for Duplicate Values in a SQL Table
Today I found myself needing to know if a particular column held unique values. Here's how I accomplished it...
Troubleshooting NFS Shared Folders in Homestead
Every now and then I will attempt to start Laravel Homestead on my mac and will get an error indicating a problem with mounting the NFS shared folders.After entering the password into the command line the console will output:
Don't Fight The Framework
The X-Factor: Or, How To Debug
Have you ever been around a person, or maybe you are that individual, who has the innate ability to figure out what’s wrong with _____? Merely glancing at the computer that is behaving strangely causes the problem to disappear, touching the printer results in printed pages, or opening the hood of the car stops the squealing?
It’s a strange phenomenon, but certain people possess the ability to diagnose a situation, survey the playing field, and effectively implement a solution. I’m sure you’ve seen it happen before.
Truth be told, I don’t believe these people have any special magic. It is far more likely they’ve spent time honing their ability to observe what’s going on, consider possible courses of action, and choose the one that has the best probability of fixing the problem.
This is called troubleshooting.
Page 1 of 4 (33 total entries)