Locations and Maps - systeminc/laravel-admin GitHub Wiki

An easy way to manipulate with Locations and Maps with our SLA facade.

Please set your Google API key in our config/laravel-admin.php in array google_map_api for our map

Possibility to add a custom marker, thumb image or image for every location.

Locations

Get all locations

SLA::locations()

Get single location

SLA::location($location_key)

Map

Get all maps

SLA::maps()

Get single map

SLA::map($map_key)

Get locations for map

SLA::map($map_key)->locations return relationship hasMany