Eoghan O'Brien
fullstack developer

Dynamic Laravel Eloquent model relationships

Laravel Eloquent models are not `Macroable` by default, if you want to add a relationship dynamically on a model in another module or package, you need to macro through the `Builder` instead of the `Model`.

read more