mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
'img/einundzwanzig.png'
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
|
|||||||
use Illuminate\Contracts\Filesystem\Filesystem;
|
use Illuminate\Contracts\Filesystem\Filesystem;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
|
use League\Glide\Filesystem\FileNotFoundException;
|
||||||
use League\Glide\Responses\LaravelResponseFactory;
|
use League\Glide\Responses\LaravelResponseFactory;
|
||||||
use League\Glide\ServerFactory;
|
use League\Glide\ServerFactory;
|
||||||
|
|
||||||
@@ -31,7 +32,7 @@ class ImageController extends Controller
|
|||||||
]);
|
]);
|
||||||
try {
|
try {
|
||||||
return $server->getImageResponse($path, request()->all());
|
return $server->getImageResponse($path, request()->all());
|
||||||
} catch (\Exception $exception) {
|
} catch (FileNotFoundException $exception) {
|
||||||
abort(404);
|
abort(404);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user