Visible On Edit

how do i make input visible only on edit with the $record->status = true?
Forms\Components\Select::make('project_manager_id')
  ->label(__('Project Manager'))
  ->visibleOn('edit')
  ->searchable()
  ->options(fn() => User::all()->pluck('name', 'id')->toArray())
  ->default(fn() => auth()->user()->id)
  ->required(),
Was this page helpful?