refactor: rename property to match type

This commit is contained in:
HDVinnie
2020-07-22 14:50:41 -04:00
parent f91264752d
commit e7ccde0190
78 changed files with 701 additions and 701 deletions
@@ -188,8 +188,8 @@ class NotificationController extends Controller
*/
public function updateAll(Request $request)
{
$current = new Carbon();
$request->user()->unreadNotifications()->update(['read_at' => $current]);
$carbon = new Carbon();
$request->user()->unreadNotifications()->update(['read_at' => $carbon]);
return redirect()->route('notifications.index')
->withSuccess('All Notifications Marked As Read!');