Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Update the example of creating column points in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
Ercogx committed May 24, 2024
1 parent b54fba9 commit 183a399
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 183a399

Please sign in to comment.