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