static function model laravel 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();
}