Model Detail

The Model Detail view gives you the full structure of a single Eloquent model across four sections.
The header badges summarise the model at a glance — its table, whether it uses timestamps, its policy, and its factory (shown when the model's resolved factory class exists on disk; hover for the class name and file path).
Columns
A table of every column in the model's database table, showing:
- Name — column name; foreign key columns are badged to signal the relationship. Columns backed by a non-unique index get an
indexedbadge when a lone filter can use them (a single-column index or the leading column of a composite); a non-leading composite member instead gets a mutedcomposite N/Mbadge, signalling it isn't independently filterable. Primary and unique keys have their own badges. - Type — the raw database type (e.g.
bigint,varchar,json) - Cast — the Eloquent cast applied, if any (e.g.
datetime,array,encrypted). When the cast is a PHP enum, its cases are expanded inline asName=valuechips (backed enums) orNamechips (pure enums) so you can see the valid values without opening the enum - Nullable / Default — whether the column accepts nulls and its default value
Relations
Every relationship method detected on the model, showing:
- Method name — the PHP method that defines the relation. A muted sub-line surfaces extra structural detail where it applies: the pivot table, keys, and extra columns for many-to-many; the morph type column for polymorphic relations; and the through model for has-many/one-through
- Type badge — colour-coded by relation kind (HasOne, BelongsTo, BelongsToMany, Morph variants, etc.)
- Related model — the target model class
- Source — whether the method is defined directly on the model or inherited via a trait or parent class
Scopes
Local query scopes defined on the model. Each scope shows:
- Method name — the scope method (without the
scopeprefix) - Parameters — the method signature, excluding the implicit
$queryargument - Source snippet — the scope body, syntax-highlighted, expandable in a modal
Traits
All traits used by the model, filtered according to excluded_trait_prefixes in the config. Each entry shows the fully-qualified trait name and whether it originates from the model itself or a parent class.