Merge branch 'develop' into 5.8-dev

# Conflicts:
#	composer.lock
This commit is contained in:
James Cole
2022-08-03 05:40:31 +02:00
68 changed files with 572 additions and 646 deletions

View File

@@ -24,6 +24,7 @@ namespace FireflyIII\Models;
use Eloquent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Carbon;
@@ -97,4 +98,16 @@ class PiggyBankEvent extends Model
{
return $this->belongsTo(TransactionJournal::class);
}
/**
* Get the amount
*
* @return Attribute
*/
protected function amount(): Attribute
{
return Attribute::make(
get: fn($value) => (string) $value,
);
}
}