Skip to content
Advertisement

When I pass string variables to controller in laravel via ajax, It doesn’t show me proper data

This is my Ajax Query

JavaScript

This is y Controller

JavaScript

And this is the response I get, butI actually want the proper string value that I passed through ajax This is what i get as response

Advertisement

Answer

actually, your script shows proper data what you asking for

JavaScript

here your URL looks something like this. because you sending a string instead of a value

JavaScript

what you need to do is

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement