Unable to show non numeric primary key in tables?

I have the current schema in
    public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Forms\Components\TextInput::make('busnumber')
                    ->required()
                    ->maxLength(8),
                Forms\Components\Select::make('driver_id')
                    ->relationship('driver', 'name')
                    ->required(),
                Forms\Components\TextInput::make('model')
                    ->required()
                    ->maxLength(65535)
                    ->columnSpanFull(),
                Forms\Components\TextInput::make('maxpax')
                    ->required()
                    ->numeric()
                    ->maxLength(65535)
                    ->columnSpanFull(),
            ]);
    }

However, the busnumber seems to print out to 0 on the form. The rest is printing out fine. Could this be because busnumber is a primary key?
Solution
All we needed is
protected $keyType = 'string';
Was this page helpful?