Skip to content

Blog

Page 27 of 76 - keep going...

Adding CSV Responses to Laravel Using Macros

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.)

Aug 3, 2018 4 min read #laravel #php

Teaching is a Privilege, Treat it as Such

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:

Jun 25, 2018 4 min read #business

Get All iMessage Attachments

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.

Jun 4, 2018 3 min read #macos #php

Musings on GitHub

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.

May 28, 2018 5 min read #git #misc-web

Laravel 5.4 API/Request Validate Boolean

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.

Nov 17, 2017 1 min read #laravel #php