PHPnews.io

Overview for 'stitcher-io'

Laravel beyond CRUD: the next chapter

Written by Stitcher.io / Original link on Jul. 9, 2020

It's been almost a year since I released the first post in a series called "Laravel beyond CRUD'. Its goal to teach about how we've been building large application with complex business rules, in Laravel. It's clear that many of you enjoyed that series: it got over 150,000 views, and I still get se…


Abstract resources in Laravel Nova

Written by Stitcher.io / Original link on Jun. 23, 2020

One of the major coding architecture strategies I use when building a complex Laravel Nova project is the ability to have an abstract resource class. Before starting by the way, if you want deep dive in Nova, I suggest you subscribe to updates in my upcoming course Mastering Nova that will be relea…


Constructor property promotion in PHP 8

Written by Stitcher.io / Original link on Jun. 12, 2020

Personally, I use value objects and data transfer objects all the time in my projects. I even wrote a dedicated post on how to treat data in our code a while back. Naturally, I'm very happy with the constructor property promotion RFC, it's passed and will be added in PHP 8. You see, this feature re…


Attributes in PHP 8

Written by Stitcher.io / Original link on Jun. 9, 2020

As of PHP 8, we'll be able to use attributes. The goal of these attributes, also known as annotations in many other languages, is to add meta data to classes, methods, variables and what not; in a structured way. The concept of attributes isn't new at all, we've been using docblocks to simulate the…


Survey results: type systems in PHP

Written by Stitcher.io / Original link on Jun. 9, 2020

I use PHP's type system as much as possible, though often found resistance with the people I interact with on Twitter and Reddit. After having discussed the topic numerous times, I felt like both "camps" were not really listening to each other, or at least not understanding each others point. It ma…