diff --git a/public/js/searchName.js b/public/js/searchName.js index 9b37d4f..f171884 100644 --- a/public/js/searchName.js +++ b/public/js/searchName.js @@ -25,7 +25,7 @@ var bloodhound = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.whitespace, queryTokenizer: Bloodhound.tokenizers.whitespace, remote: { - url: 'http://localhost:8000/admin/searchByName?nama=%QUERY', + url: api_url + '/admin/searchByName?nama=%QUERY', wildcard:'%QUERY', transform: function(response) { return response.map(function(item) { diff --git a/resources/views/customers/v2/index.blade.php b/resources/views/customers/v2/index.blade.php index eb7053e..f3c5118 100644 --- a/resources/views/customers/v2/index.blade.php +++ b/resources/views/customers/v2/index.blade.php @@ -475,7 +475,6 @@ - + @push('additional_scripts') + + @endsection