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 is an observer in laravel?

531


What is x-csrf-token?

637


How to configure route cache and clear route cache in laravel?

540


What is the difference between facades vs helper functions?

535


How to get/set configuration values in laravel?

528


Explain what is mvc architecture?

556


What is meant by CRUD and explain each of it Operations ?

600


Where laravel’s facades are defined?

594


Explain the controllers in laravel?

545


How do I know laravel version?

481


What is eager loading in laravel?

521


Explain binding primitives?

531


What is meant by Attaching Cookies ?

968


How can you enable query log in laravel?

552


What is a soft delete?

514