cheesegrits / filament-google-maps

Google Maps package for Filament PHP
212 stars 60 forks source link

Unable to call component method. Public method [reverseGeocodeUsing] not found on component #68

Open brain82 opened 7 months ago

brain82 commented 7 months ago

The error Unable to call component method. Public method [reverseGeocodeUsing] not found on component is thrown once an address is selected.

Geocomplete::make('customer_location_raw')
  ->live()
  ->isLocation()
  ->required()
  ->prefixIcon('heroicon-o-map-pin')
  ->label('Customer Address')
  ->countries(['uk'])
  ->reverseGeocodeUsing(function (array $results) {
      ray($results);
  })
SiddharthaGF commented 7 months ago

Try putting use InteractsWithMaps; in the resource's create and edit class