public function findAllBy($attribute, $value, $columns = ['*'])
    {
        $this->newQuery();

        // Perform where in
        if (is_array($value)) {
            return $this->query->whereIn($attribute, $value)->get($columns);
        }

        return $this->query->where($attribute, '=', $value)->get($columns);
    }
public function findAllBy($attribute, $value, $columns = ['*'])
    {
        $this->newQuery();

        // Perform where in
        if (is_array($value)) {
            return $this->query->whereIn($attribute, $value)->get($columns);
        }

        return $this->query->where($attribute, '=', $value)->get($columns);
    }
public function findAllBy ( $ attribute , $ value , $ columns = [ '*' ] ) { $ this -> newQuery ( ) ; // Perform where in if ( is_array ( $ value ) ) { return $ this -> query -> whereIn ( $ attribute , $ value ) -> get ( $ columns ) ; } return $ this -> query -> where ( $ attribute , '=' , $ value ) -> get ( $ columns ) ; }
Find data by field

@param string $attribute
@param mixed  $value
@param array  $columns

@return mixed
Find data by field