I have a table with a column of type Spatial point ,,
I want the query to insert the values of that column with laravel
and if there a queries to get items within a specific range ?
any help here ??
That's my table here :
public function up()
{
Schema::create('markers', function(Blueprint $table)
{
$table->integer('marker_id')->primary();
$table->string('marker_name', 45);
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
});
DB::raw("ALTER TABLE markers ADD COLUMN location POINT");
}