Error: Call to a member function get() on string: Call to a member function get() on string