{"id":13608263,"url":"https://github.com/nafiesl/laravel-leaflet-example","last_synced_at":"2025-08-10T16:08:09.648Z","repository":{"id":48780955,"uuid":"162052207","full_name":"nafiesl/laravel-leaflet-example","owner":"nafiesl","description":"Laravel Leaflet JS project example.","archived":false,"fork":false,"pushed_at":"2024-12-22T13:39:40.000Z","size":694,"stargazers_count":112,"open_issues_count":2,"forks_count":55,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-30T09:09:31.302Z","etag":null,"topics":["laravel","leafletjs","openstreetmap"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nafiesl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.buymeacoffee.com/nafiesl","https://www.paypal.me/nafiesl","https://trakteer.id/nafiesl"]}},"created_at":"2018-12-16T23:58:22.000Z","updated_at":"2025-07-14T15:55:04.000Z","dependencies_parsed_at":"2024-01-17T00:18:02.271Z","dependency_job_id":"15b254d9-40b6-48f2-9038-e924bd1777b8","html_url":"https://github.com/nafiesl/laravel-leaflet-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nafiesl/laravel-leaflet-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafiesl%2Flaravel-leaflet-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafiesl%2Flaravel-leaflet-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafiesl%2Flaravel-leaflet-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafiesl%2Flaravel-leaflet-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nafiesl","download_url":"https://codeload.github.com/nafiesl/laravel-leaflet-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafiesl%2Flaravel-leaflet-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269748149,"owners_count":24469106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","leafletjs","openstreetmap"],"created_at":"2024-08-01T19:01:25.702Z","updated_at":"2025-08-10T16:08:09.619Z","avatar_url":"https://github.com/nafiesl.png","language":"PHP","funding_links":["https://www.buymeacoffee.com/nafiesl","https://www.paypal.me/nafiesl","https://trakteer.id/nafiesl"],"categories":["PHP"],"sub_categories":[],"readme":"# Laravel Leaflet JS - Example\n\nThis is an example project for [Leaflet JS](https://leafletjs.com) and [OpenStreetMap](https://www.openstreetmap.org) built with Laravel 5.8.\n\n![Laravel Leaflet JS Project Example](public/screenshots/leaflet-map-01.jpg)\n\n## Features\n\nIn this project, we have an Outlet Management (CRUD) with localtion/coordinate point that shown in map. We also have coordinate entry with direct map pointing on Outlet Create and Edit form.\n\n## Installation Steps\n\nFollow this instructions to install the project:\n\n1. Clone this repo.\n    ```bash\n    $ git clone git@github.com:nafiesl/laravel-leaflet-example.git\n    # or\n    $ git clone https://github.com/nafiesl/laravel-leaflet-example.git\n    ```\n2. `$ cd laravel-leaflet-example`\n3. `$ composer install`\n4. `$ cp .env.example .env`\n5. `$ php artisan key:generate`\n6. Set **database config** on `.env` file\n7. `$ php artisan migrate`\n8. `$ php artisan serve`\n10. Open `https://localhost:8000` with browser.\n\n### Demo Records\n\nIf we need some outlet demo records, we can use model factory within tinker:\n\n```bash\n$ php artisan tinker\n\u003e\u003e\u003e factory(App\\Outlet::class, 30)-\u003ecreate();\n```\n\n### Leaflet config\n\nWe have a `config/leaflet.php` file in this project. Set default **zoom level** and **map center** coordinate here (or in `.env` file).\n\n```php\n\u003c?php\n\nreturn [\n    'zoom_level'           =\u003e 13,\n    'detail_zoom_level'    =\u003e 16,\n    'map_center_latitude'  =\u003e env('MAP_CENTER_LATITUDE', '-3.313695'),\n    'map_center_longitude' =\u003e env('MAP_CENTER_LONGITUDE', '114.590148'),\n];\n```\n\n\u003e Please note that this is not an official or required config file from Leaflet JS, it is just a custom config for this project.\n\n## Testing\n\nRun PHPUnit to run feature test:\n\n```bash\n$ vendor/bin/phpunit\n```\n\n## License\n\nThis project is open-sourced software licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnafiesl%2Flaravel-leaflet-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnafiesl%2Flaravel-leaflet-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnafiesl%2Flaravel-leaflet-example/lists"}