Base class that I've used for some Laravel projects