laravel make a method call static and dynamic code example
Example: static function model laravel
public static function isOpen($week)
{
return (new static)::where('week', $week)->first();
}
public static function isOpen($week)
{
return (new static)::where('week', $week)->first();
}