New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

techouse/select-auto-complete

An auto-completing Laravel Nova search field.
641,281 30

Larablocks Analysis

techouse/select-auto-complete works with Laravel 5 to 9 (latest release v1.4.1, Feb 13, 2022), all past end of life (the last on Feb 6, 2024): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: marked abandoned on Packagist.

  • Marked abandoned on Packagist
  • Supports only Laravel 5 to 9, past end of life since Feb 6, 2024
  • No release in the last 12 months (last: Feb 13, 2022)
  • 3,517 downloads a month (needs 10,000)
  • 30 GitHub stars (needs 100)

State

Abandoned
  • Packagist marks this package abandoned.
  • Last stable release: Feb 13, 2022.
  • No releases in the last 12 months.
  • First released: Oct 20, 2018.
  • Monthly downloads: 3,517.
  • 7 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require techouse/select-auto-complete
Latest Version:v1.4.1
PHP:>=7.1.0
Laravel:5 – 9
License:MIT
Last Updated:Mar 26, 2022
Links: GitHub  ·  Packagist
Maintainer: techouse

Select Auto-Complete

Latest Version on Packagist Total Downloads Licence PHP version Codacy Badge GitHub stars

An auto-completing Laravel Nova search field.

Provides a capability of auto-completed searching for results inside a select input field.

Select Auto-Complete

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require techouse/select-auto-complete

Usage

The API is extends Nova's default Select Field by adding these additional options:

  • default - OPTIONAL - Set the default value in case of an empty field. Default is null.
  • maxResults - OPTIONAL - Number of results to show at a time. Has to be a positive integer. Default is 30.
  • maxHeight - OPTIONAL - Height of select dropdown list. Default is 220px.
  • displayUsingLabels - OPTIONAL - List only the labels of the options list. Default is disabled and displays keys and labels.
  • placeholder - OPTIONAL - Use a custom placeholder.

Simply use SelectAutoComplete class instead of Select directly or alias it like the example below so you won't have to refactor too much existing code.

<?php

namespace App\Nova\Actions;

use App\AccountData;
use Illuminate\Bus\Queueable;
use Laravel\Nova\Actions\Action;
use Illuminate\Support\Collection;
use Laravel\Nova\Fields\ActionFields;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Techouse\SelectAutoComplete\SelectAutoComplete as Select;

class EmailAccountProfile extends Action
{
    use InteractsWithQueue, Queueable, SerializesModels;

    /**
     * Perform the action on the given models.
     *
     * @param  \Laravel\Nova\Fields\ActionFields  $fields
     * @param  \Illuminate\Support\Collection  $models
     * @return mixed
     */
    public function handle(ActionFields $fields, Collection $models)
    {
        foreach ($models as $model) {
            (new AccountData($model))->send();
        }
    }

    /**
     * Get the fields available on the action.
     *
     * @return array
     */
    public function fields()
    {
        return [
            Select::make(__('Person'), 'person')
                  ->options(\App\Person::all()->mapWithKeys(function ($person) {
                      return [$person->id => $person->name];
                  }))
                  ->displayUsingLabels(),
                  
            Select::make(__('Partner'), 'partner')
                  ->options(\App\User::all()->pluck('name', 'id'))
                  ->placeholder('Pick a name') // use a custom placeholder
                  ->displayUsingLabels()       // display only the labels od the options list
                  ->default(7)                 // set the default to the User with the ID 7
                  ->maxResults(5)              // limit the dropdown select to a max of 5 hits
                  ->maxHeight('100px')         // limit the dropdown to a max height of 100px
                  ->required()                 // make the field required
        ];
    }
}

Alternatives to techouse/select-auto-complete

outl1ne/nova-multiselect-field

A multiple select field for Laravel Nova.

4,485,153 343
titasgailius/search-relations

A Laravel Nova tool.

8,014,731 357
optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3,895,020 343
ziffmedia/nova-select-plus

A Nova select field for simple and complex select inputs

711,257 96
drpshtiwan/livewire-async-select

A powerful async select component for Laravel Livewire with Alpine.js - a modern...

12,067 112

Version History

Version Released PHP Laravel License
v1.4.1 >=7.1.0 ^5.6 || ^6.0 || ^7.0 || ^8.0 || ^9.0 MIT
v1.4.0 >=7.1.0 ^5.6 || ^6.0 || ^7.0 || ^8.0 || ^9.0 MIT
v1.3.6 >=7.1.0 ^5.6 || ^6.0 || ^7.0 || ^8.0 MIT
v1.3.5 >=7.1.0 ^5.6 || ^6.0 || ^7.0 || ^8.0 MIT
v1.3.4 >=7.1.0 ^5.6 || ^6.0 || ^7.0 MIT