static and non-static functions to get relation methods of an Eloquent model