Loading...

Posts by tag: traits

Enhancing Laravel Applications with Traits: A Step-by-Step Guide

code-reuse | Laravel | traits

Enhancing Laravel Applications with Traits: A Step-by-Step Guide

What are traits? Traits are a mechanism for code reuse. Traits allow you to create methods...

David Carr

4 min read -

Laravel use multiple boot in traits

traits | Boot | Laravel

Laravel use multiple boot in traits

Let's say you want to use multiple traits in your models to reuse common code such as appl...

David Carr

2 min read -