diff --git a/README.md b/README.md index f180e9c..9064985 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,10 @@ return new class extends Migration { { Schema::create('map_points', function (Blueprint $table) { $table->id(); - $table->point('point')->nullable(); // for Point type + + $table->point('point')->nullable(); // for Point type in Laravel 10 + $table->geography('point', 'point', 0)->nullable(); // for Point type in Laravel 11 + $table->string('point_string')->nullable(); // for String type $table->json('point_array')->nullable(); // for Array type $table->timestamps(); diff --git a/composer.json b/composer.json index d4b0e3b..41bd011 100644 --- a/composer.json +++ b/composer.json @@ -24,13 +24,13 @@ "php": "^8.1", "filament/filament": "^3", "filament/forms": "^3", - "illuminate/contracts": "^10.0", + "illuminate/contracts": "^10.0|^11.0", "matanyadaev/laravel-eloquent-spatial": "^3.0|^4.0", "spatie/laravel-package-tools": "^1.15.0" }, "require-dev": { - "nunomaduro/collision": "^7.9", - "orchestra/testbench": "^8.0", + "nunomaduro/collision": "^7.9|^8.0", + "orchestra/testbench": "^8.0|^9.0", "pestphp/pest": "^2.0", "pestphp/pest-plugin-arch": "^2.0", "pestphp/pest-plugin-laravel": "^2.0"