From 491b0c90170e8ed496649346e7bd3062116e92b4 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Sun, 21 Jul 2024 23:19:05 +0200 Subject: [PATCH] chore: add changelog & format --- CHANGELOG.md | 6 ++++++ src/Database/Eloquent/HasPostgisColumns.php | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20a22ba..d49c6f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Improved +- Only override attribute preparation functions on models instead of `performInsert` or `performUpdate` entirely (thanks @RomainMazB #89) + +### Fixed +- Fixed geometries not being passed to model events (fixes #87) (thanks @RomainMazB #89) + ## [1.6.0](https://github.com/clickbar/laravel-magellan/tree/1.6.0) - 2024-03-17 ### Added diff --git a/src/Database/Eloquent/HasPostgisColumns.php b/src/Database/Eloquent/HasPostgisColumns.php index 8c6d3b0..b1e6bf1 100644 --- a/src/Database/Eloquent/HasPostgisColumns.php +++ b/src/Database/Eloquent/HasPostgisColumns.php @@ -9,7 +9,6 @@ use Clickbar\Magellan\IO\Generator\BaseGenerator; use Clickbar\Magellan\IO\Generator\WKT\WKTGenerator; use Clickbar\Magellan\IO\Parser\WKB\WKBParser; -use Illuminate\Database\Eloquent\Builder as EloquentBuilder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Arr; use Illuminate\Support\Facades\App;