Programming and Parenting

Random nuggets of hopefully useful information. And Food.

How to Install Laravel Spark

Doing a fresh install of Laravel Spark or even an upgrade has proved problematic almost every time i attempt it. Recently I finally figured out how to do it properly!

Read Full Article

How to use Laravel Forge with Amazon Web Services EC2

Laravel Forge is a great tool to help you provision your own servers, however if you want to use AWS EC2 you'll have to do some additional setup before Forge can connect to your servers. This post details what's needed!

Read Full Article

Backup MySQL database to Digital Ocean Spaces

Creating backups of your database is a no-brainer. There are lots of guides on how to do this and upload the backup to Amazon S3, but now Digital Ocean Spaces in on the scene, let's give it a try!

Read Full Article

Notifications delayed on Android Pie?

Just recently I noticed that notifications for WhatsApp and Facebook Messenger were not coming through. They'd only show if I opened up the app...

Read Full Article

Laravel Queue Delays Not Working

Using Laravel 5.7 queues along with Redis I found that whilst the events were being dispatched and handled by the queue worker, it always did it immediately and disregarded any delay i set on it

Read Full Article

Upload and fetch images using Digital Ocean Spaces and Laravel 5

I needed a place to securely store my files offsite and Amazon S3 was a obvious choice at time (2016). However Digital Ocean have now released their own storage product calles Spaces. This guide shows you just how simple and easy it is to work with it using Laravel.

Read Full Article

Cached values not showing in Redis

Recently I wasn't able to access any cached values in Redis. I knew the values were being saved, but no keys were showing when using 'KEYS *'

Read Full Article

Linux & Bash Command Line Cheat Sheet

The one thing that i always find myself doing is searching online for common linux and bash commands and functions. It got to the point where instead of just reaching for StackOverflow, it was time to learn them for myself. This page will be a list of the commands i find myself using on a regular basis. A Cheat Sheet if you will. My advice to you, is to learn as many of these off by heart if you can. They really are useful for your career!

Read Full Article

Custom API error messages with Laravel 5+

I've been building an API using Laravel 5.6 and one of the things which I wanted to do was to customise the error responses for certain thrown exceptions, 404, 405, 500 etc. In this article I'll explain how to do that.

Read Full Article

Can't write image data to path - Intervention Image

I recently came across the following error when using Intervention Image with Laravel 5.6: "Can't write image data to path (storage/thumbs/filename.jpeg)". Turns out it was a permissions issue!

Read Full Article