public function exists($column = null, $value = null)
    {
        if ($value == null && $value == null) {
            return $this->count() > 0;
        }

        if ($value == null) {
            $value = $column;

            $column = (new $this->model)->getKey();
        }

        return $this->where($column, $value)->count() > 0;
    }
public function exists($column = null, $value = null)
    {
        if ($value == null && $value == null) {
            return $this->count() > 0;
        }

        if ($value == null) {
            $value = $column;

            $column = (new $this->model)->getKey();
        }

        return $this->where($column, $value)->count() > 0;
    }
public function exists ( $ column = null , $ value = null ) { if ( $ value == null && $ value == null ) { return $ this -> count ( ) > 0 ; } if ( $ value == null ) { $ value = $ column ; $ column = ( new $ this -> model ) -> getKey ( ) ; } return $ this -> where ( $ column , $ value ) -> count ( ) > 0 ; }
Check if rows exists

@param string $column
@param string|int $value
@return bool
@throws
Check if rows exists