Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

abort() suggestion when file not found #124

Open
iateadonut opened this issue Apr 8, 2021 · 0 comments
Open

abort() suggestion when file not found #124

iateadonut opened this issue Apr 8, 2021 · 0 comments

Comments

@iateadonut
Copy link

In laravel, abort(404) returns a custom 404 page, which can take some time.

Maybe https://github.com/Intervention/imagecache/blob/master/src/Intervention/Image/ImageCacheController.php - line 137 should be this instead, so it just returns one line?:

abort( response()->json(['message' => 'Not Found!'], 404) );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant