|
|
|
@ -44,7 +44,7 @@ class PushCourses extends Command
|
|
|
|
public function handle()
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$today = date('Y-m-d');
|
|
|
|
$today = date('Y-m-d');
|
|
|
|
$courses = Course::where('sign_end_date', $today)->whereHas('typeDetail', function ($query) {
|
|
|
|
$courses = Course::whereHas('typeDetail', function ($query) {
|
|
|
|
$query->where('is_push', 1);
|
|
|
|
$query->where('is_push', 1);
|
|
|
|
})->get();
|
|
|
|
})->get();
|
|
|
|
if ($courses->isEmpty()) {
|
|
|
|
if ($courses->isEmpty()) {
|
|
|
|
|