1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 14:26:25 +02:00

fixed more attributes to match beta 8

This commit is contained in:
Daniel Klabbers
2018-05-14 13:49:52 +02:00
parent a9501ceae0
commit 3e3e1cbde5
22 changed files with 65 additions and 45 deletions

View File

@ -11,6 +11,7 @@
namespace Flarum\Notification;
use Carbon\Carbon;
use Flarum\User\User;
class NotificationRepository
@ -53,6 +54,6 @@ class NotificationRepository
*/
public function markAllAsRead(User $user)
{
Notification::where('user_id', $user->id)->update(['read_at' => time()]);
Notification::where('user_id', $user->id)->update(['read_at' => Carbon::now()]);
}
}