I have been using Laravel for about 2 months. And I'm just wondered about how to define models in the proper way.
For example, I define model's method in this way.
public static get_book_static($id){
return Book::where($id)->first();
}
public get_book($id){
return Book::where($id)->first();
}
In models, I defined the methods both in static and not.
I want to know that which one is the better way to use, because Laravel seems to use a lot of static methods out there.