I'm trying to figure out how to run a raw query from within a model.
Let's say I have a model FOO and this model has a method which does cross table joints, grouping a bit more logic and is way to heavy for Eloquent ORM.
What I want is the ability to call this method from controller, like so:
Model::method()->get()
To be honest, any other call is fine as long as I can keep the raw query inside the model and call it from controller.
What I want to avoid is to have DB::raw() and the query itself in controller.