mxms / autocomplete
A custom autocomplete field for Laravel Nova 4.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: ^7.3|^8.0
This package is auto-updated.
Last update: 2024-11-03 06:19:49 UTC
README
An autocomplete / autosuggestion field for Laravel Nova 4.0
Installation
-
Install via Composer:
composer require mxms/autocomplete
Usage
-
Populating autosuggestions:
use Mxms\Autocomplete\Autocomplete; public function fields(NovaRequest $request) { $userNames = User::pluck('name')->toArray(); return [ Autocomplete::make('User', 'user')->items($userNames) ]; }
License
The MIT License (MIT).