laravel model static method called in controller 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();
}