private function trackRoute(Route $route)
    {
        return $this->getModel()->newQuery()->firstOrCreate([
            'name'   => $this->getRouteName($route),
            'action' => $route->getActionName(),
        ])->getKey();
    }
private function trackRoute(Route $route)
    {
        return $this->getModel()->newQuery()->firstOrCreate([
            'name'   => $this->getRouteName($route),
            'action' => $route->getActionName(),
        ])->getKey();
    }
private function trackRoute ( Route $ route ) { return $ this -> getModel ( ) -> newQuery ( ) -> firstOrCreate ( [ 'name' => $ this -> getRouteName ( $ route ) , 'action' => $ route -> getActionName ( ) , ] ) -> getKey ( ) ; }
Track the current route.

@param  \Illuminate\Routing\Route  $route

@return int
Track the current route .