Laravel version update
Laravel version update
This commit is contained in:
@@ -57,7 +57,7 @@ class CheckUpdate
|
||||
if ($not->count() > 0) {
|
||||
$now = \Carbon\Carbon::now();
|
||||
$yesterday = \Carbon\Carbon::yesterday();
|
||||
$notifications = $notify->whereBetween('created_at', [$yesterday, $now])->lists('value', 'key');
|
||||
$notifications = $notify->whereBetween('created_at', [$yesterday, $now])->pluck('value', 'key');
|
||||
$todelete = $notify->where('created_at', '<', $yesterday)->get();
|
||||
if ($todelete->count() > 0) {
|
||||
foreach ($todelete as $delete) {
|
||||
@@ -114,7 +114,7 @@ class CheckUpdate
|
||||
if ($n) {
|
||||
$now = \Carbon\Carbon::now();
|
||||
$yesterday = \Carbon\Carbon::yesterday();
|
||||
$notifications = $notify->where('key', 'new-version')->whereBetween('created_at', [$yesterday, $now])->lists('value', 'key');
|
||||
$notifications = $notify->where('key', 'new-version')->whereBetween('created_at', [$yesterday, $now])->pluck('value', 'key');
|
||||
if ($notifications->count() > 0) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user