auto selecting company_id
Hello friends, please tell me how to make the attached screenshot so that instead of company_id, the current company is selected automotically (I have a multi tenancy implementation) Form code:
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Select::make('company_id')
->relationship('company', 'name')
->required(),
Forms\Components\TextInput::make('address')
->required()
->suffixIcon('heroicon-m-globe-alt')
->maxLength(255),
Forms\Components\TextInput::make('email')
->required()
->email()
->suffixIcon('heroicon-o-envelope')
->maxLength(255),
Forms\Components\TextInput::make('number')
->suffixIcon('heroicon-m-device-phone-mobile')
->required()
->numeric(),
]);
}public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Select::make('company_id')
->relationship('company', 'name')
->required(),
Forms\Components\TextInput::make('address')
->required()
->suffixIcon('heroicon-m-globe-alt')
->maxLength(255),
Forms\Components\TextInput::make('email')
->required()
->email()
->suffixIcon('heroicon-o-envelope')
->maxLength(255),
Forms\Components\TextInput::make('number')
->suffixIcon('heroicon-m-device-phone-mobile')
->required()
->numeric(),
]);
}

