mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Fix route in net worth and expand user group API
This commit is contained in:
		| @@ -29,6 +29,7 @@ use Illuminate\Database\Eloquent\Builder; | ||||
| use Illuminate\Database\Eloquent\Casts\Attribute; | ||||
| use Illuminate\Database\Eloquent\Model; | ||||
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | ||||
| use Illuminate\Database\Eloquent\SoftDeletes; | ||||
| use Illuminate\Support\Carbon; | ||||
| 
 | ||||
| /** | ||||
| @@ -66,6 +67,8 @@ use Illuminate\Support\Carbon; | ||||
|  */ | ||||
| class CurrencyExchangeRate extends Model | ||||
| { | ||||
|     use SoftDeletes; | ||||
| 
 | ||||
|     /** @var array Convert these fields to other data types */ | ||||
|     protected $casts | ||||
|                         = [ | ||||
| @@ -108,7 +111,7 @@ class CurrencyExchangeRate extends Model | ||||
|     protected function rate(): Attribute | ||||
|     { | ||||
|         return Attribute::make( | ||||
|             get: fn ($value) => (string)$value, | ||||
|             get: fn($value) => (string)$value, | ||||
|         ); | ||||
|     } | ||||
| 
 | ||||
| @@ -118,7 +121,7 @@ class CurrencyExchangeRate extends Model | ||||
|     protected function userRate(): Attribute | ||||
|     { | ||||
|         return Attribute::make( | ||||
|             get: fn ($value) => (string)$value, | ||||
|             get: fn($value) => (string)$value, | ||||
|         ); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user