All entries of my technical and business blog

Get Laravel Auth User in 404 Blade

May 6, 2023 laravel

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.

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

May 4, 2023 css

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.

Sort Nova Users on Spatie Role

Apr 9, 2023 laravel

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.

Google Geo-location Zip Only Not Found Fix

Apr 6, 2023 misc-web

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.

Moved to Hugo

Mar 9, 2023 news

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.

Statement of Work Example

Mar 1, 2023 business

Whether you’re on the side that just landed the big deal - or you’re the business eager to get your project launched - you need to know what a statement of work is. Let’s talk about contracts and statements of work for developers.

Requirements Gathering Questions to Ask

Mar 1, 2023 business

Gathering requirements for a new project can get unwieldy and unorganized pretty easily. It’s easy to get lost or go down a deep rabbit hole. You may be getting excited about the new project’s technical challenges or be blindly following the client’s explanation and description. How do you know you’ve covered everything, though? What if you’re missing vital points?