BindingResolver
class BindingResolver
Properties
| static protected array | $booted | ||
| static protected array | $columns | ||
| static protected array | $docBlocks | ||
| static protected bool | $skipDatabase | ||
| static protected PhpDocParser|null | $docParser | ||
| static protected Lexer|null | $lexer |
Methods
Set whether binding types skip the database schema.
Resolve the primitive types and binding key for a routable class.
Resolve primitive types from an Eloquent cast.
Resolve primitive types from the model's class-level docblock.
Map raw primitive evidence to TypeScript primitives.
Build a configured PhpDoc parser instance.
Build a configured PhpDoc lexer instance.
Return the shared PhpDoc parser configuration.
Flush all static state.
Details
at line 36
static void
skipDatabase(bool $skip)
Set whether binding types skip the database schema.
at line 50
static array
resolveTypesAndKey(string $routable, string|null $key)
Resolve the primitive types and binding key for a routable class.
at line 72
static protected array
primitiveCastTypes(string|null $cast)
Resolve primitive types from an Eloquent cast.
at line 86
static protected array
schemaTypes(Model $model, string $key)
Resolve primitive types from the model schema.
at line 102
static protected array
getColumns(Model $model)
Return column metadata for the model.
at line 120
static protected array
phpDocTypes(Model $model, string $key)
Resolve primitive types from the model's class-level docblock.
at line 132
static protected array
parseDocBlock(Model $model)
Extract primitive property types from the model's class-level docblock.
at line 177
static protected array
primitiveTypes(array $types)
Map raw primitive evidence to TypeScript primitives.
at line 196
static protected PhpDocParser
initDocParser()
Build a configured PhpDoc parser instance.
at line 208
static protected Lexer
initLexer()
Build a configured PhpDoc lexer instance.
at line 216
static protected ParserConfig
getParserConfig()
Return the shared PhpDoc parser configuration.
at line 224
static void
flushState()
Flush all static state.