Skip to content

Commit f252d72

Browse files
Update SendReminder to filter reminders by send time and clean up unused imports
1 parent f172b78 commit f252d72

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/Console/Commands/SendReminder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function handle()
3030
$tanggal = date('Y-m-d');
3131
$reminders = DaftarReminder::with('daftarKegiatan')
3232
->where('tanggal', $tanggal)
33-
33+
->where('waktu_kirim', '<=', date('H:i:s'))
3434
->where('status', '!=', 'sent')
3535
->get();
3636
foreach ($reminders as $reminder) {

app/Providers/AppServiceProvider.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ public function register(): void
1717
/**
1818
* Bootstrap any application services.
1919
*/
20-
public function boot(): void {}
20+
public function boot(): void
21+
{
22+
//
23+
}
2124
}

app/Providers/NovaServiceProvider.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
use Illuminate\Http\Request;
5555
use Illuminate\Support\Facades\Gate;
5656
use Illuminate\Support\Facades\Hash;
57-
use Illuminate\Support\Facades\URL;
5857
use Laravel\Fortify\Features;
5958
use Laravel\Fortify\Fortify;
6059
use Laravel\Nova\Menu\Menu;

0 commit comments

Comments
 (0)