Chaining methods from a Laravel helper class
Method chaining is a technique where a class with multiple methods can have those methods chained together and called in sequence into a single command.
A benefit of this can be cleaner and less repetitive code.
As an example, I created a helper clas...
blog.kerryowston.co.uk3 min read
David Carr
Web developer
Chaining methods is really handy, for instance when sending email using Microsoft 365 I set the package so I can do this: