Once you've uploaded a file, you can update its cover at any time.
$cover = $request->file('cover'); $upload = Upload::query()->first(); $upload->file->cover()->update($cover); # or (recommended) $upload->attachment('file')->cover()->update($cover); $upload->save();
Last updated 5 months ago