/**
* @mixin \Illuminate\Database\Query\Builder
*/
interface AGGridModelInterface { }
I assume your IDE is screaming
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone.
So I have a model - InventoryItem, which implements a AGGridModelInterface.
I do this, because I need specific columns and methods in InventoryItem that are used for the formatting AGGridService.
The problem is that, in the AGGridService, I only use the Interface, because it's Model agnostic, and it's screaming at me that, for example, where does not exist.
Using abstract classes instead of interfaces is weird to me. What would be the best option here?
In short: How can I extend an interface to say it has all the functions of a model?
Please or to participate in this conversation.