Geni Jaho

Geni Jaho @genijaho

About: Full-stack web developer with a passion for software architecture and cloud computing.

Joined:
Jun 19, 2021

Geni Jaho
articles - 24 total

Simplifying work with custom stubs in Laravel

Testing is almost always difficult when developing applications that interact with external services,...

Learn More 1 0May 17

Upgrading to Laravel 10, PHPUnit 10, and Pest 2

We're upgrading from Laravel 9 to 10, and PHPUnit 9 to 10, and, if all goes well, we'll top it off by...

Learn More 2 0Sep 17 '23

Speed up GitHub Actions by caching Composer, Rector, & Pint

GitHub's 2000 minutes per month of free usage of GitHub Actions is usually enough to handle light...

Learn More 1 0Jun 20 '23

Doing stricter checks in PHP

A nice refactoring I've learned recently is to utilize types in conditionals. For years I’ve been...

Learn More 2 0Apr 9 '23

Upgrading to Eloquent accessors & mutators from Laravel 9

Laravel 10 is making the headlines these days. However, many apps are stuck in older versions, or at...

Learn More 1 0Feb 26 '23

Development Driven Testing

One of the first roles that I've been working on since I went full-time remote was that of the unit...

Learn More 2 0Feb 1 '23

Allowing users to send emails with their own SMTP settings in Laravel 9

Various guides exist on how to do this in Laravel, but all the ones I found (this and this) worked...

Learn More 6 1Jan 22 '23

Safely upgrade from PHP 7.4 to 8.1 using Rector

I have to say it from the start, the only thing that comes close to safely upgrading a codebase is...

Learn More 16 0Sep 25 '22

Refactoring #8: What is dead may never run

It's important to take a good look at your code and clean up when you're done with it. Once in a...

Learn More 7 0Sep 4 '22

Refactoring #7: Upping the coding style game in PHP using Rector

Continuing from the last post, we're now exploring other Rector configurations that help us improve...

Learn More 3 0Aug 31 '22

Refactoring #6: Improve Code Quality in Laravel using Rector

I recently discovered Rector and was completely blown away by its power and effectiveness. The...

Learn More 12 0Aug 11 '22

Adding user-specific settings in Laravel

The latest feature we added to OLM is the ability to make yourself known to the world using your...

Learn More 3 0Apr 28 '22

Refactoring #5: From arrays to Data Transfer Objects

We recently pushed a new improvement at OLM to reward admins with XP for verifying uploaded images....

Learn More 14 0Apr 23 '22

Generate monthly chart data with Eloquent & Carbon

Say we want to display the number of users that signed up in the last years, for each month. It's not...

Learn More 4 0Mar 5 '22

Testing Form Requests with PHPUnit

Countless are the times I've had to test for validation errors, and countless are the times I've...

Learn More 14 0Feb 11 '22

Refactoring #4: Using Minio to work with S3 buckets locally

You’ll often notice in various projects that code behaves differently depending on the environment....

Learn More 6 0Jan 9 '22

Refactoring #3: Optimizing Eloquent queries & console commands

We have a console command at Openlittermap that takes all the litter locations in the world and...

Learn More 4 0Dec 31 '21

Refactoring #2: From controllers to actions

A major pain point in programming is having to deal with all the clutter that is shoved into...

Learn More 8 0Dec 24 '21

How to add support for HEIC images with ImageMagick in PHP

Apple released a new image format called HEIC/HEIF, and it broke many apps that handle image...

Learn More 4 0Nov 9 '21

Refactoring #1: Using ternary and null coalescing operators in PHP

Take a look at this little method below. Three issues come to mind the first time you see it....

Learn More 24 6Jul 17 '21

Typewriter animation using Vanilla JS and Highlight.js

You’ve seen typewriter animations. You’ve seen the power of Highlight.js. Now you’re seeing the...

Learn More 47 6Jul 7 '21

Testing Fat Laravel Controllers - Pt. 2

Before we start with the second part of testing our fat controller, let's clarify what we should have...

Learn More 1 0Jul 5 '21

Testing Fat Laravel Controllers - Pt. 1

Many new products launching out there don't embrace a TDD approach. It's the norm that code is pushed...

Learn More 3 0Jun 21 '21

Unit Testing Laravel Models

Some might consider Laravel model testing to be a gruesome task, especially when there's plenty of...

Learn More 10 0Jun 19 '21