
Dylan Baine
I'm a Staff Software Engineer from Fort Wayne, Indiana working at Sweetwater Sound.
I also do development and SEO consulting on the side.
If you're interested in reading some short stories I've written, you can see those at goingforwords.com.
Recent Posts
A cleaner way to dynamically style elements in PHP
If you’ve ever found yourself writing nasty inline php if statements in order to dynamically add styles or classes to your HTML, then this package might just be for you. I just released the first version of ComputedStyles php which provides an elegant API for applying styles and classes to HTML.
Dependency Inversion: An Example
The easiest way to make your code is more extensible is by making sure that your high level code and low level code aren’t mixed together. What’s high level and low level code? In this context, low level code would be considered code that interacts with a data store, filesystem, or third party API’s/libraries. High level code is the code that follows business logic. IE: when creating a user, check to see if that user already exists before creating it.
Ensuring you dont run your Laravel test suite in production (and wipe out all of your production data).
What if you accidentally run your test suite in a production environment? Well, if you’ve been around Laravel long enough, you know what happens. You run php artisan test, you notice it’s taking a really long time, and you finally realize that is because the test is clearing out your whole database.
How to get a picture next to your website on Google search
Are you looking for ways to get your website more clicks from google search? If your website is already ranking on the first page of Google, but not getting the CTR (click through rate) that you’re wanting, getting an image to display next to your site listing could be key in getting more people to click on your website.
How to install Headless Chrome on a Laravel Forge server for chrome-php.
This post will go over how I installed chromium binary on a Laravel Forge server.