I have an interface that announces the need to implement methods such as find, findOrFail, etc., mostly the eloquent Laravel methods.
I declare these methods in the interface because not everything that implements the interface will be eloquent, so I declare them in the interface, so my application always knows that the methods will be there.
What I want to know, in addition to the fact that in models there are a bunch of methods like public function find($id){return parent::find($id)} that do extend the eloquent model, there is an easy way to tell the interface that the method is processed through __call ?
source share