You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System and Version: Linux foobar 6.1.0-30-amd64 Unable to compile laravel-nova JS #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux
Description:
When using "mariadb" database driver the usage of SearchableText() in searchableColumns() in a Resource class does not add the fulltext query part thus returning no search results.
public static function searchableColumns(): array
{
return [new SearchableText('name')];
}
I guess issue lies within vendor/laravel/nova/src/Query/Search/SearchableText.php in following line, as $connectionType='mariadb' is not handled.
if (in_array($connectionType, ['mysql', 'pgsql'])) {
Should be like this:
if (in_array($connectionType, ['mariadb', 'mysql', 'pgsql'])) {
Detailed steps to reproduce the issue on a fresh Nova installation:
create a new migration and model, set $table->fullText('<column_name>') in the migration for the desired text column
Description:
When using "mariadb" database driver the usage of SearchableText() in searchableColumns() in a Resource class does not add the fulltext query part thus returning no search results.
I guess issue lies within vendor/laravel/nova/src/Query/Search/SearchableText.php in following line, as $connectionType='mariadb' is not handled.
Should be like this:
Detailed steps to reproduce the issue on a fresh Nova installation:
The text was updated successfully, but these errors were encountered: