PHPnews.io

Overview for 'jasonmccreary'

Avoiding inheritance in Laravel models

Written by Jason McCreary / Original link on May. 13, 2020

After working on hundreds of Laravel projects, a common regret I see is the use of inheritance. While inheritance is one of the pillars of object oriented programming, it's actually less beneficial when used alongside a framework like Laravel.One of the drawbacks is that you inject a layer of separ…


Avoiding inheritance in Laravel

Written by Jason McCreary / Original link on May. 13, 2020

Over the past few years, I've paired with hundreds of developers on their Laravel projects. One of the most common regrets (technical debt) we encounter is the use of inheritance. While inheritance is one of the pillars of object oriented programming, it's actually less beneficial when used alongsi…


Shift Database Outage

Written by Jason McCreary / Original link on Mar. 24, 2020

It was 1:28pm. I received the following notification:SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orders' doesn't existI ignored it at first as sometimes the Shift workers drop the database connection. Then I received another. And another. And another.I went to laravelshift.com. 500.I …


A review of 2019 and goals for 2020

Written by Jason McCreary / Original link on Jan. 12, 2020

Every year I set a few goals and review them at the end of the year. Last year I wrote 2018 Lookbehind, Lookahead 2019. This year I'll follow the same format. So before talking about my goals for 2020, let's look back at 2019.2019 Goals✅ Redesign BlogThis was a pretty easy one. I do this on purpos…



Streamlining Laravel

Written by murze.be / Original link on Dec. 9, 2019

JMac, the creator of Laravel Shift, has a few interesting ideas on how to make the framework better.Every so often a revolutionary change is required. This provides a chance to revisit goals. One of …