Good Kaizen – PHP
A blog about doing good and getting better at life, code, design, and business. We do our best to write in a way that clients will find valuable.
Kaizen is the practice of continuous improvement.
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.
'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.