abort() suggestion when file not found
iateadonut opened this issue · comments
Daniel Ahern commented
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) );