All Projects → nafiesl → Laravel Leaflet Example

nafiesl / Laravel Leaflet Example

Licence: mit
Laravel Leaflet JS project example.

Projects that are alternatives of or similar to Laravel Leaflet Example

Eloquentfilter
An Eloquent Way To Filter Laravel Models And Their Relationships
Stars: ✭ 1,113 (+1586.36%)
Mutual labels:  laravel
Iwatched
Track movies or tv shows you watched.
Stars: ✭ 64 (-3.03%)
Mutual labels:  laravel
Laravel Api Health
Monitor first and third-party services and get notified when something goes wrong!
Stars: ✭ 65 (-1.52%)
Mutual labels:  laravel
Laravel Restify
The fastest way to make a powerful JSON:API compatible Rest API with Laravel.
Stars: ✭ 62 (-6.06%)
Mutual labels:  laravel
Laravel Email Verification
Laravel package to handle user verification using an activation mail
Stars: ✭ 63 (-4.55%)
Mutual labels:  laravel
Laravel Packme
A CLI starter pack for developing a package with Laravel 5
Stars: ✭ 64 (-3.03%)
Mutual labels:  laravel
Valet4windows
Windows version of Laravel Valet
Stars: ✭ 61 (-7.58%)
Mutual labels:  laravel
Ucenter
用户中心 统一身份认证
Stars: ✭ 65 (-1.52%)
Mutual labels:  laravel
Laravel Potion
laravel - Potion is a pure PHP asset manager for Laravel 5 based off of Assetic.
Stars: ✭ 63 (-4.55%)
Mutual labels:  laravel
Laravel Websockets Chat Example
Example of a real-time chat system built with the Laravel WebSockets package, VueJs, and Laravel-echo.
Stars: ✭ 65 (-1.52%)
Mutual labels:  laravel
Nova Custom Email Sender
A Laravel Nova tool that sends ad-hoc email messages from the dashboard.
Stars: ✭ 62 (-6.06%)
Mutual labels:  laravel
Laravel Auth Tests
Some boilerplate tests for Laravel's auth scaffold
Stars: ✭ 62 (-6.06%)
Mutual labels:  laravel
Tall
A TALL (Tailwind CSS, Alpine.js, Laravel and Livewire) Preset for Laravel
Stars: ✭ 1,133 (+1616.67%)
Mutual labels:  laravel
Coyote
4programmers.net
Stars: ✭ 61 (-7.58%)
Mutual labels:  laravel
E Wallet
Wallet project based on laravel. The project is integrated with stripe for card payments and paypal APIs. It is 90% complete with features including deposits send money with cool ui. Clone the project and start your wallet system asap. cheers
Stars: ✭ 65 (-1.52%)
Mutual labels:  laravel
Laravel Opcache
Laravel Package for OPcache
Stars: ✭ 1,116 (+1590.91%)
Mutual labels:  laravel
Laravel Mongodb Passport
A package to get Laravel Passport working with MongoDB
Stars: ✭ 64 (-3.03%)
Mutual labels:  laravel
Laravel Schematics
A Laravel package making a diagram of your models, relations and the ability to build them with it
Stars: ✭ 1,137 (+1622.73%)
Mutual labels:  laravel
Watchable
Enable users to watch various models in your application.
Stars: ✭ 65 (-1.52%)
Mutual labels:  laravel
Laravel Lang
🌏 75 languages support for Laravel application.
Stars: ✭ 1,134 (+1618.18%)
Mutual labels:  laravel

Laravel Leaflet JS - Example

This is an example project for Leaflet JS and OpenStreetMap built with Laravel 5.8.

Laravel Leaflet JS Project Example

Features

In 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.

Installation Steps

Follow this instructions to install the project:

  1. Clone this repo.
    $ git clone [email protected]:nafiesl/laravel-leaflet-example.git
    # or
    $ git clone https://github.com/nafiesl/laravel-leaflet-example.git
    
  2. $ cd laravel-leaflet-example
  3. $ composer install
  4. $ cp .env.example .env
  5. $ php artisan key:generate
  6. Set database config on .env file
  7. $ php artisan migrate
  8. $ php artisan serve
  9. Open https://localhost:8000 with browser.

Demo Records

If we need some outlet demo records, we can use model factory within tinker:

$ php artisan tinker
>>> factory(App\Outlet::class, 30)->create();

Leaflet config

We have a config/leaflet.php file in this project. Set default zoom level and map center coordinate here (or in .env file).

<?php

return [
    'zoom_level'           => 13,
    'detail_zoom_level'    => 16,
    'map_center_latitude'  => env('MAP_CENTER_LATITUDE', '-3.313695'),
    'map_center_longitude' => env('MAP_CENTER_LONGITUDE', '114.590148'),
];

Please note that this is not an official or required config file from Leaflet JS, it is just a custom config for this project.

Testing

Run PHPUnit to run feature test:

$ vendor/bin/phpunit

License

This project is open-sourced software licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].