All entries of my technical and business blog

Adding CSV Responses to Laravel Using Macros

Aug 3, 2018 laravel php

Laravel has a lot of the most common functionality built into the framework. However, decisions need to be made to balance the needs of the majority of use cases with the stability and agility that programmers need. No one really wants a bloated library. Because of this, you might find that you need functionality that is not directly built into Laravel. When I started working with Laravel-based CSV responses, this was the case. (This article is based on Laravel 5.6.)

Teaching is a Privilege, Treat it as Such

Jun 25, 2018 business

I’ve been to conferences where I’ve shelled out my hard-earned money to attend, been to free local meetups, and all kinds of presentations in between. One thing that I’ve heard more than once, though, is a variation of this:

Get All iMessage Attachments

Jun 4, 2018 macos php

The other day I was looking for an image from one of my iMessage chats. When you browse through the attachments on the iPhone, it takes forever to scroll through them. At one point, I kept having the iMessage app crash as well (I think I was maybe 400 or 500 images into the history). Turns out, if you have your iMessage and iCloud accounts configured properly on your Mac, you’ll have duplicate copies of all the attachments (for at least the messages you haven’t deleted) on your Mac as well.

Musings on Github

May 28, 2018 git misc-web

Github is one of the most useful tools I have in my arsenal. With over 100 repositories (some of which are private), it’s the best $7/mo I spend. However, there are a couple things about Github you might not know.

Laravel 5.4 API/Request Validate Boolean

Nov 17, 2017 laravel php

For some API work in Laravel, I wanted to validate that the incoming request parameter was a boolean value. At first I tried using the built in boolean slug validator but it didn’t accept all of the ‘boolean’ values I wanted to use. (Also there were weird scenarios where string values of false were triggering as true - like what I wrote about here.