file(Storage::disk('images')->path($image->album->id . '/' . $size . '/' . $image->id . '.avif')); } /** * Display the thumbnail of the specified resource. */ public function thumbnail(Image $image) : BinaryFileResponse { return $this->show($image, 'thumbnail'); } /** * Display the lightbox of the specified resource. */ public function lightbox(Image $image) : BinaryFileResponse { return $this->show($image, 'lightbox'); } /** * Display the lightbox of the specified resource. */ public function download(Image $image) { return Storage::disk('images')->download($image->album_id . '/original/' . $image->id . '.avif', name: $image->album->name . '_' . $image->id . '.avif'); } /** * Show the form for editing the specified resource. */ public function edit(Image $image) { // } /** * Update the specified resource in storage. */ public function update(UpdateImageRequest $request, Image $image) { // } /** * Remove the specified resource from storage. */ public function destroy(Image $image) { // } }