should i use static functions laravel code example
Example 1: static function model laravel
public static function isOpen($week)
{
return (new static)::where('week', $week)->first();
}
Example 2: new static laravel
Explained like a charm
https://stackoverflow.com/questions/15898843/what-means-new-static