parent
fe06c345bc
commit
091307b20f
|
|
@ -128,7 +128,9 @@ class Audition extends Model
|
||||||
|
|
||||||
public function scopeOpen(Builder $query): void
|
public function scopeOpen(Builder $query): void
|
||||||
{
|
{
|
||||||
$query->where('entry_deadline', '>=', Carbon::now('America/Chicago'));
|
$currentDate = Carbon::now('America/Chicago');
|
||||||
|
$currentDate = $currentDate->format('Y-m-d');
|
||||||
|
$query->where('entry_deadline', '>=', $currentDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeForSeating(Builder $query): void
|
public function scopeForSeating(Builder $query): void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue