public function handle($request, Closure $next) { if ($this->auth->check()) { $this->auth->user()->update(['user_lastvisit' => Carbon::createFromTime(null, null, 0)]); } return $next($request); }