Skip to content

Commit

Permalink
Cast metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Dec 21, 2024
1 parent 0aa33db commit 21813ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Media extends Model
'public' => 'boolean',
'created_at' => 'datetime:d-m-Y H:i',
'updated_at' => 'datetime:d-m-Y H:i',
'metadata' => 'array',
];

protected $appends = [
Expand Down Expand Up @@ -121,4 +122,4 @@ public function download(): \Symfony\Component\HttpFoundation\StreamedResponse

return Storage::disk($disk)->download($directory . '/' . $this->filename);

Check failure on line 123 in src/Models/Media.php

View workflow job for this annotation

GitHub Actions / phpstan

Access to an undefined property Vormkracht10\MediaPicker\Models\Media::$filename.
}
}
}

0 comments on commit 21813ed

Please sign in to comment.