'img/einundzwanzig.png'

This commit is contained in:
HolgerHatGarKeineNode
2023-05-10 12:37:25 +02:00
parent d1093c6e9c
commit e1896d4fc8

View File

@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
use Illuminate\Contracts\Filesystem\Filesystem;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use League\Glide\Filesystem\FileNotFoundException;
use League\Glide\Responses\LaravelResponseFactory;
use League\Glide\ServerFactory;
@@ -31,7 +32,7 @@ class ImageController extends Controller
]);
try {
return $server->getImageResponse($path, request()->all());
} catch (\Exception $exception) {
} catch (FileNotFoundException $exception) {
abort(404);
}
}