Refactor models to use new attribute cast
This commit is contained in:
parent
a8de52077f
commit
cfca6a1de5
9 changed files with 218 additions and 292 deletions
|
@ -75,7 +75,7 @@ class MicropubMediaController extends Controller
|
|||
return [
|
||||
'url' => $mediaItem->url,
|
||||
'published' => $mediaItem->created_at->toW3cString(),
|
||||
'mime_type' => $mediaItem->getMimeType(),
|
||||
'mime_type' => $mediaItem->mimetype,
|
||||
];
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue