mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-06 12:45:30 +00:00
Attachment controller basic index.
This commit is contained in:
@@ -147,6 +147,24 @@ class AttachmentController extends Controller
|
||||
return view('attachments.edit', compact('attachment', 'subTitleIcon', 'subTitle'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$set = $this->repository->get();
|
||||
$set = $set->each(
|
||||
function (Attachment $attachment) {
|
||||
$attachment->file_exists = $this->repository->exists($attachment);
|
||||
|
||||
return $attachment;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
return view('attachments.index', compact('set'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AttachmentFormRequest $request
|
||||
* @param Attachment $attachment
|
||||
|
Reference in New Issue
Block a user