We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e608f commit 708fed0Copy full SHA for 708fed0
src/MCP/Concerns/FieldMcpSchemaDetection.php
@@ -17,7 +17,10 @@ trait FieldMcpSchemaDetection
17
*/
18
public static function hasJsonSchemaSupport(): bool
19
{
20
- return class_exists(\Illuminate\JsonSchema\JsonSchemaTypeFactory::class);
+ // Check for the interface first - this is what Laravel 12 provides
21
+ // The class_exists check on JsonSchemaTypeFactory would trigger autoloading
22
+ // which fails on Laravel 11 because the interface doesn't exist
23
+ return interface_exists(\Illuminate\Contracts\JsonSchema\JsonSchema::class);
24
}
25
26
/**
0 commit comments