You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-25Lines changed: 12 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ From the command line:
31
31
php artisan make:migration create_places_table
32
32
```
33
33
34
-
Then edit the migration you just created by adding at least one spatial data field. For Laravel versions prior to 5.5, you can use the Blueprint provided by this package (Grimzy\LaravelMysqlSpatial\Schema\Blueprint):
34
+
Then edit the migration you just created by adding at least one spatial data field.
35
35
36
36
```php
37
37
use Illuminate\Database\Migrations\Migration;
@@ -92,11 +92,11 @@ Then edit the model you just created. It must use the `SpatialTrait` and define
92
92
namespace App;
93
93
94
94
use Illuminate\Database\Eloquent\Model;
95
-
use Grimzy\LaravelMysqlSpatial\Eloquent\SpatialTrait;
95
+
use Limenet\LaravelMysqlSpatial\Eloquent\SpatialTrait;
@@ -193,7 +193,7 @@ Check out the [Class diagram](https://user-images.githubusercontent.com/1837678/
193
193
194
194
### Using Geometry classes
195
195
196
-
In order for your Eloquent Model to handle the Geometry classes, it must use the `Grimzy\LaravelMysqlSpatial\Eloquent\SpatialTrait` trait and define a `protected` property `$spatialFields` as an array of MySQL Spatial Data Type column names (example in [Quickstart](#user-content-create-a-model)).
196
+
In order for your Eloquent Model to handle the Geometry classes, it must use the `Limenet\LaravelMysqlSpatial\Eloquent\SpatialTrait` trait and define a `protected` property `$spatialFields` as an array of MySQL Spatial Data Type column names (example in [Quickstart](#user-content-create-a-model)).
197
197
198
198
#### IteratorAggregate and ArrayAccess
199
199
@@ -289,19 +289,6 @@ Available scopes:
289
289
290
290
*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)).*
291
291
292
-
## Migrations
293
-
294
-
For Laravel versions prior to 5.5, you can use the Blueprint provided with this package: `Grimzy\LaravelMysqlSpatial\Schema\Blueprint`.
295
-
296
-
```php
297
-
use Illuminate\Database\Migrations\Migration;
298
-
use Grimzy\LaravelMysqlSpatial\Schema\Blueprint;
299
-
300
-
class CreatePlacesTable extends Migration {
301
-
// ...
302
-
}
303
-
```
304
-
305
292
### Columns
306
293
307
294
Available [MySQL Spatial Types](https://dev.mysql.com/doc/refman/8.0/en/spatial-type-overview.html) migration blueprints:
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
parameters:
2
2
ignoreErrors:
3
3
-
4
-
message:"#^PHPDoc type Grimzy\\\\LaravelMysqlSpatial\\\\Types\\\\GeometryInterface of property Grimzy\\\\LaravelMysqlSpatial\\\\Eloquent\\\\SpatialExpression\\:\\:\\$value is not covariant with PHPDoc type float\\|int\\|string of overridden property Illuminate\\\\Database\\\\Query\\\\Expression\\:\\:\\$value\\.$#"
4
+
message:"#^PHPDoc type Limenet\\\\LaravelMysqlSpatial\\\\Types\\\\GeometryInterface of property Limenet\\\\LaravelMysqlSpatial\\\\Eloquent\\\\SpatialExpression\\:\\:\\$value is not covariant with PHPDoc type float\\|int\\|string of overridden property Illuminate\\\\Database\\\\Query\\\\Expression\\:\\:\\$value\\.$#"
5
5
count:1
6
6
path:src/Eloquent/SpatialExpression.php
7
7
@@ -11,12 +11,12 @@ parameters:
11
11
path:src/MysqlConnection.php
12
12
13
13
-
14
-
message:"#^Method Grimzy\\\\LaravelMysqlSpatial\\\\MysqlConnection\\:\\:getDefaultSchemaGrammar\\(\\) should return Illuminate\\\\Database\\\\Schema\\\\Grammars\\\\MySqlGrammar but returns Illuminate\\\\Database\\\\Grammar\\.$#"
14
+
message:"#^Method Limenet\\\\LaravelMysqlSpatial\\\\MysqlConnection\\:\\:getDefaultSchemaGrammar\\(\\) should return Illuminate\\\\Database\\\\Schema\\\\Grammars\\\\MySqlGrammar but returns Illuminate\\\\Database\\\\Grammar\\.$#"
15
15
count:1
16
16
path:src/MysqlConnection.php
17
17
18
18
-
19
-
message:"#^Method Grimzy\\\\LaravelMysqlSpatial\\\\Schema\\\\Blueprint\\:\\:spatialIndex\\(\\) should return Illuminate\\\\Database\\\\Schema\\\\IndexDefinition but returns Illuminate\\\\Support\\\\Fluent\\.$#"
19
+
message:"#^Method Limenet\\\\LaravelMysqlSpatial\\\\Schema\\\\Blueprint\\:\\:spatialIndex\\(\\) should return Illuminate\\\\Database\\\\Schema\\\\IndexDefinition but returns Illuminate\\\\Support\\\\Fluent\\.$#"
20
20
count:1
21
21
path:src/Schema/Blueprint.php
22
22
@@ -26,7 +26,7 @@ parameters:
26
26
path:src/Schema/Grammars/MySqlGrammar.php
27
27
28
28
-
29
-
message:"#^Method Grimzy\\\\LaravelMysqlSpatial\\\\Types\\\\Geometry\\:\\:fromWKT\\(\\) should return static\\(Grimzy\\\\LaravelMysqlSpatial\\\\Types\\\\Geometry\\) but returns Grimzy\\\\LaravelMysqlSpatial\\\\Types\\\\GeometryInterface\\.$#"
29
+
message:"#^Method Limenet\\\\LaravelMysqlSpatial\\\\Types\\\\Geometry\\:\\:fromWKT\\(\\) should return static\\(Limenet\\\\LaravelMysqlSpatial\\\\Types\\\\Geometry\\) but returns Limenet\\\\LaravelMysqlSpatial\\\\Types\\\\GeometryInterface\\.$#"
0 commit comments