dev-master
9999999-devSpatial data types extension for Laravel.
MIT
The Requires
The Development Requires
by Johannes Berdin
Wallogit.com
2017 © Pedro Peláez
Spatial data types extension for Laravel.
This package is fully untested, undocumented and unstable and is a combination of the two great packages: - Laravel PostGIS extension - Laravel MySQL spatial extension, (*1)
Installation made super-easy with composer:, (*2)
composer require apptimists/laravel-spatial
Also add the LaravelSpatial\SpatialServiceProvider::class to your config/app.php., (*3)
Works with PostgreSQL installed PostGIS extension and MySQL at least version 5.6., (*4)
If you try using it on a shared host which is not fulfilling those requirements, change your provider., (*5)
We use the GeoJson PHP Library for describing spatial fields as GeoJSON object, e.g.:, (*6)
use GeoJSON\Geometry\Point; ... $eloquent = new MyModel(); $eloquent->location = new Point([49.7, 6.9]); ... $eloquent->save();
Spatial data types extension for Laravel.
MIT