Correction des différents bugs
This commit is contained in:
@@ -65,10 +65,10 @@ class Contests extends Component
|
||||
public function render()
|
||||
{
|
||||
$datefin = Carbon::now()->addDays(3)->format('Y-m-d');
|
||||
$contests = Contest::where('fin', '>=', now())
|
||||
$contests = Contest::where('fin', '>=', Carbon::now()->format('Y-m-d'))
|
||||
->where('fin', '<=', $datefin)
|
||||
->where('participated', '!=', true)
|
||||
//->where('enable', true)
|
||||
->where('enable', true)
|
||||
->orderBy('fin', 'asc')
|
||||
->paginate(20);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user