I download this script <https://www.jqueryscript.net/form/Tags-Input-Autocomplete.html> and i create route

```
Route::get('/ingredients-data', function(){
$data = Menu_Ingredient::all()->pluck('name')->toArray();
return response($data);
});

```

i wanna use this to source in autocomplete.

```
        <script type="text/javascript">
        $(function() {              
            $('#form-tags-4').tagsInput({
                'autocomplete': {
                    source: [
                        'apple',
                        'banana',
                        'orange',
                        'pizza'
                    ]
                } 
            });

        });
    </script>

```

how i can do it to link route in source?