Select automatically select the first one

Hello,

Given this example:

Select::make('author_id')
    ->label('Author')
    ->options(User::all()->pluck('name', 'id'))
    ->searchable()

In case there is only one user. Is it possible to automatically set the value of the select to that user?

Thanks .
Was this page helpful?