What is meant by Laravel - Ajax ?

Answer Posted / sunil kumar

Ajax (Asynchronous JavaScript and XML) is a set of web development techniques utilizing many web technologies used on the client-side to create asynchronous Web applications.
Import jquery library in your view file to use ajax functions of jquery which will be used to send and receive data using ajax from the server.
On the server side you can use the response() function to send response to client and to send response in JSON format you can chain the response function with json() function.

json() function syntax : json(string|array $data = array(), int $status = 200, array $headers = array(), int $options)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What can I do with laravel?

421


What is the role of service provider?

404


What is meant by Laravel - Localization ?

940


What is isset function?

417


Can I use react with laravel?

421






what is Basic Routing ?

1075


How much laravel experience do you have?

435


How to enable query log in laravel?

457


When laravel was launched?

455


What do you understand by lumen?

438


Tell me what is database migration? And how to use it to add insert initial data to database?

396


How to use update query in laravel?

429


What does csrf token in laravel 5?

435


Explain how to install valet?

436


Which is better django or laravel?

427