Open matheusjohannaraujo opened 3 months ago
I have a very similar issue with Laravel Point column. Laravel: v10.48.20 Filament: v3.2.98 Livewire: v3.5.4 Migration:
$table->point('location')->nullable();
Factory:
'location' => \DB::raw("ST_GeomFromText('POINT(" . fake()->latitude . " " . fake()->longitude . ")')"),
The Filament Panel breaks when we try to edit any existing record having Point data. It logs no error/exception in the Laravel log. Just a blank screen in the browser with livewire js exceptions
Package
filament/filament
Package Version
v3.2.93
Laravel Version
v10.48.16
Livewire Version
v3.5.2
PHP Version
v8.2.12
Problem description
When a column in the database is of type geometry, the Filament panel feature breaks (it's not possible to visualize the record).
When I fill the column with NULL value, it works fine, but when I fill it with the POINT value containing Latitude and Longitude, it stops working.
Expected behavior
I expected to be able to visualize the record.
View record in table
Steps to reproduce
Create Model and Migration
php82 artisan make:model Coleta --migration
Migration
Model
Seeder
Create Resource
Resource
Record in Table
Console Browser Error
Column geo in MySQL PhpMyAdmin
Column geo with value POINT (lat, lng) in MySQL PhpMyAdmin
Reproduction repository (issue will be closed if this is not valid)
https://github.com/matheusjohannaraujo/bug-template-laravel-filament/
Relevant log output
Donate 💰 to fund this issue