Giter Site home page Giter Site logo

Comments (3)

xfudox avatar xfudox commented on August 20, 2024 2

@bkoch31 I found no official "solution" to this, but looking here you can see Eloquent already support spatial data types like point, multipoint and so on, so I'm using standard Blueprint class in migration with grimzy SpatialTrait in model and it gives no errors.

I tought that independently from how I create a table with a point field, it will sitll be a point field, so the SpatialTrait will be able to read and write to it correctly in the end.

from laravel-mysql-spatial.

xfudox avatar xfudox commented on August 20, 2024 1

I agree with you, I'm making some tests but i keep receiving

TypeError: [...] {closure}() must be an instance of Grimzy\LaravelMysqlSpatial\Schema\Blueprint, instance of Illuminate\Database\Schema\Blueprint given

It would be fantastic to use Eloquent spatial fields with your SpatialTrait.

from laravel-mysql-spatial.

bkoch31 avatar bkoch31 commented on August 20, 2024

I agree with you, I'm making some tests but i keep receiving

TypeError: [...] {closure}() must be an instance of Grimzy\LaravelMysqlSpatial\Schema\Blueprint, instance of Illuminate\Database\Schema\Blueprint given

It would be fantastic to use Eloquent spatial fields with your SpatialTrait.

@xfudox did you find a workaround for this? Writing tests with the same error as well.

from laravel-mysql-spatial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.