public function getLastVisited($locale = null, $query = null)
    {
        $query = $this->determineLocaleAndQuery($locale, $query);

        $lastVisited = $query->orderBy('created_at', 'desc')->first();

        return $lastVisited ? $lastVisited->created_at : null;
    }
public function getLastVisited($locale = null, $query = null)
    {
        $query = $this->determineLocaleAndQuery($locale, $query);

        $lastVisited = $query->orderBy('created_at', 'desc')->first();

        return $lastVisited ? $lastVisited->created_at : null;
    }
public function getLastVisited ( $ locale = null , $ query = null ) { $ query = $ this -> determineLocaleAndQuery ( $ locale , $ query ) ; $ lastVisited = $ query -> orderBy ( 'created_at' , 'desc' ) -> first ( ) ; return $ lastVisited ? $ lastVisited -> created_at : null ; }
Returns the last visited date

@param string|null $locale
@param mixed $query
@return Carbon
Returns the last visited date