Based on this feature proposal #63. This PR will add a cemetery location for a person who already passed away. This feature inspired by this Laravel Leaflet Example project. (Actually copy-paste the feature from there :grinning:)
Checklist
[x] Add location_name, location_address, latitude, and longitude fields for the person's cemetery location.
[x] Add a new table user_metadata to store addtitional user attribute (outside the users table).
[x] Add getMetadata('some_key') method on the User model to get the current user's additional attribute from the user_metadata table.
[x] Add a leaflet map to pin the person's cemetery location.
[x] Show the cemetery location map on the user's profile page.
[x] Add a config file leaflet.php to determine the default map center and zoom levels.
Description
Based on this feature proposal #63. This PR will add a cemetery location for a person who already passed away. This feature inspired by this Laravel Leaflet Example project. (Actually copy-paste the feature from there :grinning:)
Checklist
location_name
,location_address
,latitude
, andlongitude
fields for the person's cemetery location.user_metadata
to store addtitional user attribute (outside theusers
table).getMetadata('some_key')
method on theUser
model to get the current user's additional attribute from theuser_metadata
table.leaflet.php
to determine the default map center and zoom levels.Screenshots
The person's death edit page
The person's death section page
Here is a screencast record for this PR.
https://www.youtube.com/watch?v=AUcw6Ds9RH4