public function get($field)
    {
        $data=  $this->contact->scopeQuery(function($query){
            return $query->orderBy('id','DESC');
        })->first([$field]);
        return $data[$field];
    }
public function get($field)
    {
        $data=  $this->contact->scopeQuery(function($query){
            return $query->orderBy('id','DESC');
        })->first([$field]);
        return $data[$field];
    }
public function get ( $ field ) { $ data = $ this -> contact -> scopeQuery ( function ( $ query ) { return $ query -> orderBy ( 'id' , 'DESC' ) ; } ) -> first ( [ $ field ] ) ; return $ data [ $ field ] ; }
Returns field of contact.

@param array $filter

@return int
Returns field of contact .