We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a86d53e commit 7063ee8Copy full SHA for 7063ee8
src/Resources/ResourceFactory.php
@@ -122,6 +122,11 @@ public static function create(DispatchResource $resource)
122
123
public static function fromFile($fullPath)
124
{
125
+ if(file_exists($fullPath))
126
+ {
127
+ return Response::create('File Not Found', 404);
128
+ }
129
+
130
$resource = self::getExtensionResource(pathinfo($fullPath, PATHINFO_EXTENSION));
131
if($resource instanceof AbstractResource)
132
0 commit comments