Abstracting to Service Classes for Cleanliness and Reusability

As a Junior Engineer at Zaengle, I’ve learned that writing good clean code is one of the most important aspects of being a developer. There are many places in code where logic can get out of hand quickly. One such place is in the controllers. We sometimes think that the controller is simply a place to dump any logic we don’t quite know what to do with.

Continue Reading
Written By Logan Fox
Posted on

Configuring CORS for Laravel Public Storage

There are certain JavaScript packages that take public resources (e.g., images) and draw them to a canvas using the Canvas API. If those resources don’t have an 'Access-Control-Allow-Origin' header, then a CORS error will be thrown when the image is drawn into the canvas. Here's a method for configuring an Nginx server to add that header to resources in Laravel's public storage.

Continue Reading
Written By Rachel Opperman
Posted on

How We Keep Code Clean at Zaengle

Let's be honest, we all like systematic, uniform code. However, maintaining a respectable level of cleanliness across multiple developers' systems can be a challenge. Thankfully there are a few tools to help unify our editors so that our code styling gets along!

Continue Reading
Written By Jesse Schutt
Posted on

Replace Conditional with Polymorphism

If you've ever done any research into refactoring, or programming in general, you've most likely heard the term "polymorphism". When I first came across it, I have to admit, I was intimidated. Now that I've become more familiar with the concept, I can assure you, the word itself is more complicated than the underlying principle!

Continue Reading
Written By Jesse Schutt
Posted on

Resource Permissioning in Laravel Nova

Writing permissioning for Nova resources can be broken down into four basic steps. Here's a step-by-step guide on how to do it.

Continue Reading
Written By Logan Fox
Posted on