Php – Trait function alias on magic __callStatic function
I've got a Queryable trait which implements the __callStatic method to make a new instance of a Builder and run the called function on it (if it exists). It returns the Builder in order to chain queries (much like Eloquent).…