
الباطني: نشكر كل يدٍ خيرةٍ ساهمت بدعم مشاريعنا القرآنية
<p>vv</p> <p>If you have lots of options and want to populate them based on a database search or other external data source, you can use the <code>getSearchResultsUsing()</code> and <code>getOptionLabelUsing()</code> methods instead of <code>options()</code>.</p> <p>The <code>getSearchResultsUsing()</code> method accepts a callback that returns search results in <code>$key => $value</code> format. The current user’s search is available as <code>$search</code>, and you should use that to filter your results.</p> <p>The <code>getOptionLabelUsing()</code> method accepts a callback that transforms the selected option <code>$value</code> into a label. This is used when the form is first loaded when the user has not made a search yet. Otherwise, the label used to display the currently selected option would not be available.</p> <p>Both <code>getSearchResultsUsing()</code> and <code>getOptionLabelUsing()</code> must be used on the select if you want to provide custom search results:</p>