Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

How to set up auto-completion on ajax? #444

Open
Batisska opened this issue Oct 31, 2018 · 2 comments
Open

How to set up auto-completion on ajax? #444

Batisska opened this issue Oct 31, 2018 · 2 comments

Comments

@Batisska
Copy link

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?

@zofe
Copy link
Owner

zofe commented Oct 31, 2018 via email

@Batisska
Copy link
Author

Batisska commented Nov 1, 2018

Requests are not sent.
Sorry for my English.
2018-11-01 16-03-46

@Batisska Batisska closed this as completed Nov 1, 2018
@Batisska Batisska reopened this Nov 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants