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
{{ message }}
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
The result should a collection, where there are properties you declare in
your field
so basically something like
[{"id":1,"city":"555", "name":"London"}, {"id":2,"city":"666", "name":"Rome"}]
the json output of a eloquent collection for example:
return App\City::where('name', 'like', \Input::get("q")."%")->take('10')->get();
Il giorno mer 31 ott 2018 alle ore 13:10 Андрианов Сергей <
[email protected]> ha scritto:
Explain to me please. I have a field city (text). I'm trying to add
autocomplete.
MyСontroller
$edit->autocomplete('city', 'City')->remote ('null', "name", "get-city");
Route
Route::get ('/ get-city', ***@***.***');
AjaxСontroller
retourn response () -> json (['test1', 'test2']);
I get an error
count (): Parameter must be an array or an object that implements
countable.
How to set up auto-completion on ajax?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#444>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAP_P16ePyenzfZ7IDlw9bL2_vn0QxL0ks5uqZM5gaJpZM4YD8He>
.
Explain to me please. I have a field city (text). I'm trying to add autocomplete.
MyСontroller
$edit->autocomplete('city', 'City')->remote ('null', "name", "get-city");
Route
Route::get ('/ get-city', 'AjaxController@getCity');
AjaxСontroller
retourn response () -> json (['test1', 'test2']);
I get an error
count (): Parameter must be an array or an object that implements countable.
How to set up auto-completion on ajax?
The text was updated successfully, but these errors were encountered: