übergang auf pakete, integration von stripe und paypal, blog hinzugefügt.
This commit is contained in:
@@ -40,13 +40,7 @@ class Package extends Model
|
||||
'features' => 'array',
|
||||
];
|
||||
|
||||
protected function features(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: fn (mixed $value) => $value ? json_decode($value, true) : [],
|
||||
set: fn (array $value) => json_encode($value),
|
||||
);
|
||||
}
|
||||
// features handled by $casts = ['features' => 'array']
|
||||
|
||||
public function eventPackages(): HasMany
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user