libraries() ->attach($fields->library); } } /** * Get the fields available on the action. */ public function fields(NovaRequest $request): array { $libraries = Library::query() ->pluck('name', 'id'); return [ Select::make('Library') ->options($libraries), ]; } }