Skip to content

Blog

Page 7 of 71 - keep going...

Hourly Billing Gives You the Worst Results

I don’t do hourly billing (if I can help it) - but most businesses and partners still ask about my hourly rate. Hourly billing is bad. There are so many reasons. But in this article I will just focus on one: you get the worst results with hourly billing. Let’s find out why.

Jun 12, 2023 4 min read #business

Is a Laravel Blade Component for a Form a Good Idea?

The other day I was troubleshooting some code for a form in Laravel that was using a PUT method. Turns out the previous developer had not understood - and I had missed - that the @method override was missing. So I got to thinking - what if we made a form component that handles this for us? Is this a good idea?

Jun 5, 2023 3 min read #laravel

An Argument for Keeping Your Project Simple

Awesome. You used interfaces so you can abstract out the dependencies and swap services. Your database queries are all built with an ORM that is database agnostic. You don’t rely on anything special with your servers/cloud. You did it! You now have a project that retains the business logic while allowing all the technical aspects to be loosely coupled! But should you have done it?!

May 22, 2023 11 min read #business #programming

Get Laravel Auth User in 404 Blade

It’s nice that you can customize the 4xx/5xx error blade files if they’re published in Laravel - I like that. But what if you want to access the current user - or even use your standard layout - for the not found / 404 error? It’s actually quite easy. Let’s check it out.

May 6, 2023 2 min read #laravel

Use DPI Media Query for Crisp Text and Images with High Density

What do you do when your website looks great to you - but others say the text is hard to read and the image is grainy? Well, because of this specific reason, I use two monitors always - one with a higher resolution and one with less. So, as it turns out, there’s a way to make both resolutions - and people - happy. Let’s see how.

May 4, 2023 2 min read #css

Sort Nova Users on Spatie Role

The specific challenge is to sort users in a Laravel Nova application by their role. For this specific example, though, we have a number of assumptions. Although this article solves this very specific problem, you can probably extend it to apply to other custom data challenges in Nova. Let’s check it out.

Apr 9, 2023 5 min read #laravel

Google Geo-location Zip Only Not Found Fix

When running a geo-location query out to Google, we found a zip code that wasn’t found. The city/state was found in Google maps, but if you searched just the zip code, no results turned up. This is the fix I came up with.

Apr 6, 2023 2 min read #misc-web

Moved to Hugo

I just moved from Jekyll and GitHub pages to Hugo and Netlify. And made a new design. It’s overall much better - but with a few things to note.

Mar 9, 2023 2 min read #news