I want to check if today's date is between to dates dat are stored in the database. Right now I do this with laravel eloquent:
return Set::where('type', $type)
->where('active_from', '<=', date("Y-m-d"))
->where('active_until', '>=', date("Y-m-d"))
->first();
Is this correct?