Skip to content

Commit e3bcd37

Browse files
committed
Updated links in doc 📖
1 parent 9bbadd7 commit e3bcd37

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ for($polygon as $i => $linestring) {
253253

254254
#### Helpers
255255

256-
##### From/To Well Known Text ([WKT](https://dev.mysql.com/doc/refman/5.7/en/gis-data-formats.html#gis-wkt-format))
256+
##### From/To Well Known Text ([WKT](https://dev.mysql.com/doc/refman/8.0/en/gis-data-formats.html#gis-wkt-format))
257257

258258
```php
259259
// fromWKT($wkt, $srid = 0)
@@ -269,7 +269,7 @@ $polygon->toWKT(); // POLYGON((0 0,4 0,4 4,0 4,0 0),(1 1, 2 1, 2 2, 1 2,1 1))
269269
```php
270270
// fromString($wkt, $srid = 0)
271271
$point = new Point(1, 2); // lat, lng
272-
(string)$point // lng, lat: 2 1
272+
(string)$point // lng, lat: 2 1
273273

274274
$polygon = Polygon::fromString('(0 0,4 0,4 4,0 4,0 0),(1 1, 2 1, 2 2, 1 2,1 1)');
275275
(string)$polygon; // (0 0,4 0,4 4,0 4,0 0),(1 1, 2 1, 2 2, 1 2,1 1)
@@ -301,9 +301,9 @@ To deserialize a GeoJSON string into a Geometry class, you can use `Geometry::fr
301301

302302
```php
303303
$location = Geometry::fromJson('{"type":"Point","coordinates":[3.4,1.2]}');
304-
$location instanceof Point::class; // true
305-
$location->getLat(); // 1.2
306-
$location->getLng()); // 3.4
304+
$location instanceof Point::class; // true
305+
$location->getLat(); // 1.2
306+
$location->getLng()); // 3.4
307307
```
308308

309309
## Scopes: Spatial analysis functions
@@ -329,7 +329,7 @@ Available scopes:
329329
- `orderByDistance($geometryColumn, $geometry, $direction = 'asc')`
330330
- `orderByDistanceSphere($geometryColumn, $geometry, $direction = 'asc')`
331331

332-
*Note that behavior and availability of MySQL spatial analysis functions differs in each MySQL version (cf. [documentation](https://dev.mysql.com/doc/refman/5.7/en/spatial-function-reference.html)).*
332+
*Note that behavior and availability of MySQL spatial analysis functions differs in each MySQL version (cf. [documentation](https://dev.mysql.com/doc/refman/8.0/en/spatial-function-reference.html)).*
333333

334334
## Migrations
335335

@@ -346,7 +346,7 @@ class CreatePlacesTable extends Migration {
346346

347347
### Columns
348348

349-
Available [MySQL Spatial Types](https://dev.mysql.com/doc/refman/5.7/en/spatial-datatypes.html) migration blueprints:
349+
Available [MySQL Spatial Types](https://dev.mysql.com/doc/refman/8.0/en/spatial-type-overview.html) migration blueprints:
350350

351351
- `$table->geometry(string $column_name, int $srid = 0)`
352352
- `$table->point(string $column_name, int $srid = 0)`
@@ -364,9 +364,9 @@ You can add or drop spatial indexes in your migrations with the `spatialIndex` a
364364
- `$table->spatialIndex('column_name')`
365365
- `$table->dropSpatialIndex(['column_name'])` or `$table->dropSpatialIndex('index_name')`
366366

367-
Note about spatial indexes from the [MySQL documentation](https://dev.mysql.com/doc/refman/5.7/en/creating-spatial-indexes.html):
367+
Note about spatial indexes from the [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/creating-spatial-indexes.html):
368368

369-
> For [`MyISAM`](https://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html) and (as of MySQL 5.7.5) `InnoDB` tables, MySQL can create spatial indexes using syntax similar to that for creating regular indexes, but using the `SPATIAL` keyword. Columns in spatial indexes must be declared `NOT NULL`.
369+
> For [`MyISAM`](https://dev.mysql.com/doc/refman/8.0/en/myisam-storage-engine.html) and (as of MySQL 5.7.5) `InnoDB` tables, MySQL can create spatial indexes using syntax similar to that for creating regular indexes, but using the `SPATIAL` keyword. Columns in spatial indexes must be declared `NOT NULL`.
370370
371371
Also please read this [**important note**](https://laravel.com/docs/5.5/migrations#indexes) regarding Index Lengths in the Laravel 5.6 documentation.
372372

@@ -436,7 +436,7 @@ $ composer test:integration
436436
Integration tests require a running MySQL database. If you have Docker installed, you can start easily start one:
437437

438438
```shell
439-
$ make start_db # starts MySQL 8.0
439+
$ make start_db # starts MySQL 8.0
440440
# or
441441
$ make start_db V=5.7 # starts MySQL 5.7
442442
```

0 commit comments

Comments
 (0)